hey all,
I have been working on a JFrame application and i want to add an applet to the JFrame so that I can added more than one applet working together...
I did like
Applet app = new Applet();
JFrame myFrame = new JFrame();
myFrame.getContentPane().add(app); // no proplems yet
app.init(); // oops !! NullPointerException !!!
app.start(); // No problems if I skipped the previous line !!!
Note the init() method is there in the Applet File !!
please help if you can ....
thanks you in advance
I have been working on a JFrame application and i want to add an applet to the JFrame so that I can added more than one applet working together...
I did like
Applet app = new Applet();
JFrame myFrame = new JFrame();
myFrame.getContentPane().add(app); // no proplems yet
app.init(); // oops !! NullPointerException !!!
app.start(); // No problems if I skipped the previous line !!!
Note the init() method is there in the Applet File !!
please help if you can ....
thanks you in advance