Results 1 to 3 of 3
  1. #1
    Mindhunter74 is offline Member
    Join Date
    Dec 2007
    Posts
    9
    Rep Power
    0

    Question 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.

  2. #2
    Mindhunter74 is offline Member
    Join Date
    Dec 2007
    Posts
    9
    Rep Power
    0

    Default

    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

  3. #3
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 08:49 AM
  2. JFrame question
    By Try2Live4God in forum New To Java
    Replies: 2
    Last Post: 10-15-2007, 01:52 AM
  3. How to close a JFrame
    By valery in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 05:33 PM
  4. JFrame vs Applet
    By baltimore in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 03:24 AM
  5. Help with JFrame
    By Albert in forum AWT / Swing
    Replies: 2
    Last Post: 07-04-2007, 04:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •