fixed image loading
git-svn-id: http://wiiusej.googlecode.com/svn/trunk@83 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
@@ -55,7 +55,8 @@ public class ButtonsEventPanel extends javax.swing.JPanel implements WiimoteList
|
||||
*/
|
||||
public ButtonsEventPanel() {
|
||||
Toolkit toolkit = java.awt.Toolkit.getDefaultToolkit();
|
||||
wiimoteImage = toolkit.createImage("img\\wiimote.png");
|
||||
java.net.URL url = ButtonsEventPanel.class.getResource("/img/wiimote.png");
|
||||
wiimoteImage = toolkit.createImage(url);
|
||||
shape = new java.awt.geom.Ellipse2D.Double(0, 0, 13, 13);
|
||||
initComponents();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user