Search:

Type: Posts; User: jorys22

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: null pointer exception error for a method calling a graphics obj help please

    yes the variable control is what im refering too. when i try to create it as a main class lvl variable it didn't even compile.

    --- Update ---

    Im sorry i am really struggling with this program...
  2. [SOLVED] Re: null pointer exception error for a method calling a graphics obj help please

    it is null. when i initialize it though its constructor creates a class of panelc which in turn creates a pongTest obj and so it fails. in my instructions my pongTest constructor has to create a...
  3. [SOLVED] Re: null pointer exception error for a method calling a graphics obj help please

    oh its the g im guessing but i dont' know how to assign a value to a graphics variable.

    --- Update ---

    this is where the null pointer is highlighting
    control.draw(g);

    and this is the method...
  4. [SOLVED] Re: null pointer exception error for a method calling a graphics obj help please

    here is the full stackTrace
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at test.pongTest$panelc.paintComponent(pongTest.java:74)
    at...
  5. [SOLVED] null pointer exception error for a method calling a graphics obj help please

    I am trying to get a paddleball game working and as i create my paintComponent i have it call a method from a different class and its giving me this error

    Exception in thread "AWT-EventQueue-0"...
Results 1 to 5 of 5