• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog Window hides

 
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!