Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1083
| From | "Tony B" <tony.b@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Get frame reference |
| Message-ID | <8mXFh.90477$ff2.80185@fe02.news.easynews.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:31 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui In a simple gui application, I'm writing some code in which I'm using JOptionPane to display messages in various parts of the code. If I use this component with a null parent component the message box is displayed in the centre of the screen, which is correct but not what I want. Ideally what I'm trying to do is identify the parentComponent for the main gui application so that I can display the dialog relative tothe application window ? Is this possible ? Tony --- * 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
Get frame reference "Tony B" <tony.b@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: Get frame reference "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: Get frame reference "Rogan Dawes" <rogan.dawes@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: Get frame reference "Tony B" <tony.b@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: Get frame reference "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
csiph-web