Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFrame - Always on top?

 
Conrad McLaughlin
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After you create another window, call toFront() on your JFrame that you want to be at the front.

hope this helps
 
Matti Poro
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
myFrame.setAlwaysOnTop(true);

Inherited from Window.
 
xuan low
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic