How to determine if window is visible on the screen?

  • Follow


Hi,

Can java detemine if a particular window (e.g. JFrame) is visible on the
monitor (i.e. it is not hidden beneath some other programs)? How do you do
it?

Cheers,
Rach.


0
Reply Rachel 1/7/2004 10:10:22 AM

"Rachel" <rachelchew@vizzavi.NOSPAM.net> wrote in message
news:btgm1j$529$1@newshost.mot.com...
...
| Can java detemine if a particular window (e.g. JFrame) is
visible on the
| monitor (i.e. it is not hidden beneath some other programs)?
How do you do
| it?

Do you want to just find out, or make it front?
Window.toFront()  makes it top window..

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site


0
Reply Andrew 1/7/2004 5:21:36 PM


Rachel wrote:
> Hi,
> 
> Can java detemine if a particular window (e.g. JFrame) is visible on the
> monitor (i.e. it is not hidden beneath some other programs)? How do you do
> it?

I would have to say 'Why?'

What's the reason you have for wanting to check this? What are you 
trying to do?


0
Reply Jon 1/14/2004 7:16:15 PM

2 Replies
501 Views

(page loaded in 0.039 seconds)

Similiar Articles:













7/21/2012 1:41:14 AM


Reply: