Hi All,
I'm having an issue with the following error, I think its due to the placement of my images? Can someone confirm that:
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at brick.Ball.<init>(Ball.java:18)
at brick.Board.gameInit(Board.java:50)
at brick.Board.addNotify(Board.java:45)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.JRootPane.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Frame.addNotify(Unknown Source)
at java.awt.Window.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at brick.BrickGame.<init>(BrickGame.java:16)
at brick.BrickGame.main(BrickGame.java:20)
Exception in thread "Timer-0" java.lang.NullPointerException
at brick.Board$ScheduleTask.run(Board.java:112)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)