Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using a frame to call a frame

843807Dec 30 2004 — edited Dec 31 2004
Hi,

I've created an applet game where the player needs to answer questions. When the player reaches a certain object, I would like the question to pop up. Since this is my first time using frames to call frames, I decided to start off easy by creating a sample class that had only one multiple-choice question (using checkboxes). In the main class, I wrote
quesframe = new QuesFrame ("QUESTION WINDOW");
         quesframe.show (); 
expecting the frame to show up. However, the frame shows up at the right time but shows up empty. What other alternatives are there?

I was also thinking of clearing the main screen and writing the question there. However, if I were to do this, how do I clear the screen first?

Thanks in advance,
Joe
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2005
Added on Dec 30 2004
1 comment
149 views