wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes JDialog is parent of another JDialog problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JDialog is parent of another JDialog problem" Watch "JDialog is parent of another JDialog problem" New topic

JDialog is parent of another JDialog problem

Du Nguyen

Joined: May 10, 2013
Posts: 1
Hello, everybody!

I have a 3 screens as follows:

- MainGUI: main user interface of my application.
- Param_GUI: when I click menuitem on menubar to configure parameters. This JDialog will display.
- ProgressMonitor: this jdialog will display when I click analyz button from Param_GUI.

My problem is when I click Analyze button from Param_GUI, jdialog Param_GUI will dispose() and only one ProgressMonitor visible with MainGUI.
I don't know how to keep visible Param_GUI until ProgressMonitor finishes its task.

Anybody have experience, please help me.

Tks so much!
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2157
Somewhere in your code you have dialog.dispose() or something like that.

We are not mind readers, we can't guess what you are doing wrong.

Post a SSCCE that demonstrates the problem. Chances are that when you attempt to create the SSCCE you will find the problem.
It is sorta covered in the JavaRanch Style Guide.
subject: JDialog is parent of another JDialog problem
Similar Threads
Correct behaviour when launching a new window and getting rid of the first window
Updating Database using JTables
JDialog Window hides
JDialog from JinternalFrame
Where's my ProgressMonitor content?