aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to make a java window appear in front of other Windows applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to make a java window appear in front of other Windows applications" Watch "How to make a java window appear in front of other Windows applications" New topic
Author

How to make a java window appear in front of other Windows applications

landon manning
Ranch Hand

Joined: Nov 20, 2000
Posts: 47
Problem:
A user executes a (c++) program that calls my java program which displays a JFrame for user interaction. Since the java program only gets executed after a serveral tasks are completed by the c++ program, the user may alt+tab to other applications. When the c++ calls my java program, the window that it displays is hidden behind some other application window.
How do I make my java window (currently a JFrame) appear in front of any other applications that are running?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to make a java window appear in front of other Windows applications