wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JFrame - Always on top? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame - Always on top?" Watch "JFrame - Always on top?" New topic
Author

JFrame - Always on top?

Conrad McLaughlin
Greenhorn

Joined: Jan 31, 2006
Posts: 27
Is there anyway I can make this JFrame always on top? I want to be on top of any other windows that appear later in the program.

Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

After you create another window, call toFront() on your JFrame that you want to be at the front.

hope this helps


Jesus lives
Matti Poro
Ranch Hand

Joined: Dec 03, 2005
Posts: 41
myFrame.setAlwaysOnTop(true);

Inherited from Window.
xuan low
Greenhorn

Joined: Feb 20, 2009
Posts: 2
hi. even after using the alwaysontop feature on eclipse but i was still not able to get the window to always be on top of my eclipse plug-in. its a loading bar. JSuperProgressBar..

could anyone assit thanks..
 
Consider Paul's rocket mass heater.
 
subject: JFrame - Always on top?
 
Similar Threads
Very Very New
Trouble implementing a GUI
How to Maximize and minimize JButton on Mouse over
JFrame with image
how to use the flowlayout manager