Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display message in foreground  RSS feed

 
amit erandolikar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have developed an application in Swing. Now when I start a process in the application and then start other applications say ms-word, now when my java process finishes it displays message as 'process finished' with ok button.

But as currently ms-word is my foreground process, java message appears at background and user has to press alt+tab to see the message.

My question is - Is it possible to bring the message to foreground overriding other applications?

Thank you.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the API for Window, JFrame, JDialog, etc for a toFront() method.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the API for Window, JFrame, JDialog, etc for a toFront() method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!