Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1356
| From | "Lionel van den Berg" <lionel.van.den.berg@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Giving JDialog the correc |
| Message-ID | <460f7681$1@dnews.tpgi.com.au> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:32 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Often I find an error or want to give the user some information I am doing so in a class that is an extension of JPanel. However, this JPanel may have another JPanel as it's parent, or some other Container class. So if I have to show a modal JDialog or JOptionPane I don't know what to provide as the parent. Providing null to a JDialog means that if I click on another window and then back onto the original, the dialog dis-appears behind the main window. Does anyone have a design solution to this? I sort of thought that I might have a class that tracks the active window, but then all windows would have to register and de-register with this class . . . doesn't seem very convenient. Any help appreciated. Lionel. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar | Unroll thread
Giving JDialog the correc "Lionel van den Berg" <lionel.van.den.berg@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: Giving JDialog the co "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: Giving JDialog the co "Dan Andrews" <dan.andrews@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: Giving JDialog the co "Lionel van den Berg" <lionel.van.den.berg@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
csiph-web