This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog Window hides  RSS feed

 
Narayanan Jayaraman
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a JFrame and a button . When I click on the button it calls a JDialog window (Modal). The problem is When I minimize all windows applications and maximize my Intial Fram it does not display JDialog window. Since I have created this as Modal I am not able to focus on Main Frame. Any idea how to over come this ? Thanks
 
Scott Ding
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must set the JDialog's Owner,
owner - the Frame from which the dialog is displayed
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!