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...
Type: Posts; User: jorys22
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...
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...
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...
here is the full stackTrace
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at test.pongTest$panelc.paintComponent(pongTest.java:74)
at...
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"...