I am trying to read an object from a file. I have followed the examples in my book and online that i could find. but i keep getting an error saying
Exception in thread "AWT-EventQueue-0"...
Type: Posts; User: jorys22
I am trying to read an object from a file. I have followed the examples in my book and online that i could find. but i keep getting an error saying
Exception in thread "AWT-EventQueue-0"...
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"...
your suppose to read you text and figure this out not ask us to tell you how to do it
you could use a double array and just enter in the rooms and floors then when somebody selects floor 2 room2 have a method retireve the correlating array location. and add it to a string to output
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.GridLayout;
import javax.swing.JRadioButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import...