Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~124 People Reached
Favorite Forums
Favorite Tags
java x 1
Member Avatar for acer3

i keep getting this: Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:205) at Pinopoly.diceRoll.<init>(diceRoll.java:17) at Pinopoly.board.<init>(board.java:26) at Pinopoly.board.main(board.java:38) Java Result: 1 i used: dice1.setIcon(new ImageIcon(getClass().getResource("/new/dice1.jpg"))); the image is in the same folder as the java files. what could be wrong? oh and i tried changing the image and it worked.

Member Avatar for Taywin
0
124