Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #725
| From | "Steve W. Jackson" <steve.w..jackson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Changing the order of |
| Message-ID | <stevewjackson-8DACBD.12572718012007@individual.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <12qvg31maf6j115@corp.supernews.com> |
| Date | 2011-04-27 15:29 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui In article <12qvg31maf6j115@corp.supernews.com>, Dave Rudolf <dave.rudolf@usask.ca> wrote: > Hey all, > > Suppose I want to keep a window open (i.e. visible) but I want to > programmatically force it to go to the bottom of the stack, so that all other > windows appear to be ontop of it. Is there any way to do that in Java? The > target platform is Windows XP, in case there are limitations in that system. > > Thanks. > > Dave java.awt.Window has toFront and toBack methods, which are inherited by Frame and JFrame. The latter should serve your needs, but you'll want to note that it sends the focused window to the back of all others in the current JVM. If you're looking for something to send the entire application behind others, that's a different matter -- and I'm not sure if there's a pure Java way to do it. I do know, however, that using toFront has shown in our case to cause the application in question to come to the front. = Steve = -- Steve W. Jackson Montgomery, Alabama --- * 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 — Previous in thread | Find similar
Changing the order of Fra "Dave Rudolf" <dave.rudolf@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000 Re: Changing the order of "Steve W. Jackson" <steve.w..jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
csiph-web