Results 1 to 3 of 3
Thread: JFrame Question ?
- 12-21-2007, 10:04 PM #1
Member
- Join Date
- Dec 2007
- Posts
- 9
- Rep Power
- 0
JFrame Question ?
Hi.
I want some help in the following case
I'm creating a frame F1.
Also I've created another frame F2.
F2 is used to input something for F1. for exapmle F2 will display a list of available options and when the user click the submit button I'll simply dispose F2 after I get the selected options as an input to some function in F1.
The problem is that when I launch F2 while F1 is displayed , They are displayed concurrentl, but I want , when F2 is displayed , F1 is disapled. Just like when I show a JOptionPane MessageDialog or InputDialog.
How can I do this with F1, F2 ?
PLease help me with a coded example.
Thanks in advance.
- 12-21-2007, 10:11 PM #2
Member
- Join Date
- Dec 2007
- Posts
- 9
- Rep Power
- 0
HI.
I want to calrify more what I need.
suppose the following code segment:
program 1{
statement 1.
statement 2.
new MyFrame().launch();
statement 3.
statement 4.
}
When the statment "new MyFrame().launch();" is reached and thus a frame is displayed , I want the program to stop at this statement and doesn't continue exexuting statments3,4 until the frame displayed is disposed (closed).
Thanks
- 12-21-2007, 11:45 PM #3
Similar Threads
-
Question mark colon operator question
By orchid in forum Advanced JavaReplies: 9Last Post: 12-19-2010, 09:49 AM -
JFrame question
By Try2Live4God in forum New To JavaReplies: 2Last Post: 10-15-2007, 02:52 AM -
How to close a JFrame
By valery in forum New To JavaReplies: 1Last Post: 08-06-2007, 06:33 PM -
JFrame vs Applet
By baltimore in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 04:24 AM -
Help with JFrame
By Albert in forum AWT / SwingReplies: 2Last Post: 07-04-2007, 05:44 AM
Bookmarks