JFrame Question ?
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.
I want to calrify more what I need.
suppose the following code segment:
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).
Use JDialog and design your JDialog just like your JFrame.