The lines in bold have been highlighted by the compiler:
public Ball() {
xdir = 1;
ydir = -1;
ImageIcon ii = new ImageIcon(this.getClass().getResource(ball));
image =...
Type: Posts; User: CraigEllis
The lines in bold have been highlighted by the compiler:
public Ball() {
xdir = 1;
ydir = -1;
ImageIcon ii = new ImageIcon(this.getClass().getResource(ball));
image =...
Heres the code:
Board.java
package brick;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
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...