Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog --PLS HELP !!  RSS feed

 
champ king
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a modal window. When i hide the application with an another
application,(Clicking on next icon on window task bar like word or textpad anythin) when i click on my java application, the modal window stay
hide. Why ??? How to do to force the window at foreground ..
Since the JDialog is hidden i am not able to close the parent window ie. JFrame.I want my JDialog to be on the screen even after the user focus on other window tasks...
Can some one help me with the code
Thanks in advance
Champ
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you creating your JDialog? If you pass a reference to the parent frame into the JDialog constructor, things should work as you want.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!