Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with two Dialogs sharing a parent

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet which appears as a button, and when the user clicks on it, a modal Dialog (mainDialog) is opened.

When certain events occur on mainDialog, a smaller modal Dialog (subDialog) appears.

Both Dialogs have the applet frame as their parents, and the problem is that input is be blocked to subDialog when it is shown.

I have tried to call mainDialog.setModal(false) just before subDialog is constructed and displayed, but it has no effect. (However, just to test, when making mainDialog non-modal at construction everything works fine).

Does anyone have the solution workaround for how I can make these two modal Dialogs successfully share the same parent?

Thanks in advance,
James
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shouldn't the main dialog be the parent of the subdialog?
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ernest, thanks for the reply. Unfortunately I'm working with JDK1.1 so the parent must be a Frame...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic