[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

jframe wait for jdialog

Posted on 2004-11-18
4
Medium Priority
?
1,221 Views
Last Modified: 2008-01-09
Hi

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

Nesnemis
0
Comment
Question by:nesnemis
  • 3
4 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 2000 total points
ID: 12613861
Make the dialog modal.
0
 
LVL 35

Expert Comment

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

Author Comment

by:nesnemis
ID: 12613923
Oh, all this work and it is that easy...

Thanks!
0
 
LVL 35

Expert Comment

by:girionis
ID: 12613938
Thank you for accepting, glad problem is solved :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month18 days, 16 hours left to enroll

834 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