Search:

Type: Posts; User: CraigEllis

Search: Search took 0.46 seconds.

  1. Replies
    5
    Views
    704

    Re: Breakout Game Error

    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 =...
  2. Replies
    5
    Views
    704

    Re: Breakout Game Error

    Heres the code:

    Board.java


    package brick;

    import java.awt.Color;
    import java.awt.Font;
    import java.awt.FontMetrics;
  3. Replies
    5
    Views
    704

    Breakout Game Error

    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...
Results 1 to 3 of 3