Andrey Pesoshin
Andrey Pesoshin

Reputation: 1186

Java Swing. Windows in front launched from JDialog

The thing I want to implement is the next UI hierarchy in my Swing application.

  1. Main Window (JFrame)
  2. Modal dialog (JDialog) in front of this window. It's opened by clicking on the button in main window.
  3. The set of windows in front of modal dialog (2). They should be independent from each other and non-blocking for modal jdialog (2).

How can I code this?

Upvotes: 1

Views: 419

Answers (1)

camickr
camickr

Reputation: 324118

Specify the owner when you create the JDialogs. Read the JDialog API for the proper constructor to use. I would guse the owner of the dialog in point 3 would be the dialog in point 2.

Upvotes: 1

Related Questions