Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #719

Re: Changing the order of

From "Dave Rudolf" <dave.rudolf@THRWHITE.remove-dii-this>
Subject Re: Changing the order of
Message-ID <12qvhn06jfcagc2@corp.supernews.com> (permalink)
Newsgroups comp.lang.java.gui
References <stevewjackson-8DACBD.12572718012007@individual.net>
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Steve W. Jackson wrote:
> 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 =


Actually, toFront seems to work globally. Thanks.

---
 * 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 | Find similar


Thread

Re: Changing the order of "Dave Rudolf" <dave.rudolf@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000

csiph-web