jframe wait for jdialog

Posted on 2004-11-18
Last Modified: 2008-01-09

I have a Jframe that opens a Jdialog, When the dialog opens I want the jframe to stop whatever it's doing and wait for the dialog to be closed.
I've tried with wait(), notify(9 and threads, but I can't get it to work

Question by:nesnemis
    LVL 35

    Accepted Solution

    Make the dialog modal.
    LVL 35

    Expert Comment

    Either use the setModal method or create a JDialog by using thsi constructor: JDialog(Frame owner, String title, boolean modal)
    LVL 3

    Author Comment

    Oh, all this work and it is that easy...

    LVL 35

    Expert Comment

    Thank you for accepting, glad problem is solved :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Title # Comments Views Activity
    MaxSpan challenge 9 50
    scoreUp challenge 14 40
    countHi2 challenge 7 30
    Which is the latest version of Apache Tomcatl 3 20
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now