Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Stay on top" window state

Status
Not open for further replies.

globos

Programmer
Nov 8, 2000
260
FR
Hi all,

Is it possible to make a JFrame staying on top of every other windows?
--
Globos
 
You can call the toFront() method found in class Window (JFrame inherits from Frame ,which inherits from Window)

Leon
 
If you are using Windows you can tell the window to stay on top. I think you can only do it in some programs though. "and everything under the sun is in tune
but the sun is eclipsed by the moon." --Pink Floyd: Eclipse


"I'm going to spend eternity
reinstalling Windows." --Reinstalling Windows: by some British guy
 
Hi,

The toFront() method just put the window on top, but it does not stay on top if another window get the focus.

It might be possible under Windows to tell a window to stay on top, but I will use another language if it is definitly impossible in Java to do that stuff. --
Globos
 
I don't know what to tell you. As far as I know that is not possible in Java. At there is some stuff on Java, you might be able to find what you are looking for there. "and everything under the sun is in tune
but the sun is eclipsed by the moon." --Pink Floyd: Eclipse


"I'm going to spend eternity
reinstalling Windows." --Reinstalling Windows: by some British guy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top