you mean a second screen?
MySecondFrame sFrame = new MySecondFrame();
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
that's great: the solution to step one is in my previous post. (well, I did use a JFrame for both parts here) but just add a JPanel to the JFrame and you're golden :P
for the second part: check if you can find something like a dispose method for a JFrame
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
that's the name you choose.
it's like you when you say:
int counter = 0;
counter is just the name of your variable, and just like that you can have sFrame, mySecondFrame, ...
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433