Search:

Type: Posts; User: PhHein

Search: Search took 0.19 seconds.

  1. Replies
    5
    Views
    957

    Re: Dont understand the nullpointerexception

    I suggest you go back to the books for a while. There's so much wrong in your code. I have no idea whether you're trying to create an applet or a Swing application, all the stuff is static,...
  2. Replies
    5
    Views
    957

    Re: Dont understand the nullpointerexception

    You call paint with null as the first parameter. This cannot work.
  3. Replies
    5
    Views
    957

    Re: Dont understand the nullpointerexception

    public static void createTiles(int X, int Y, int Height, int Width) {
    client.paint(null, X, Y, Height, Width);
    }
    client is null. You've never instanciated it, but I don't see why you need that...
Results 1 to 3 of 3