• Post Reply Bookmark Topic Watch Topic
  • New Topic

Keeping modal dialogs visible  RSS feed

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to keep a modal dialog box visible when a user clicks off the
applcation and then tabs to it again. The users are doing this and thinking
the app is locked up when they can't do anything.

Thanks.
 
author
Ranch Hand
Posts: 197
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try installing a WindowFocusListener into all your windows, and make it put the dialog on top. It seems a pain that you have to do it--did you file a bug report in the bug parade?

Cheers,

Cay
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you creating the modal dialog? If you use the JDialog constructor that takes a Frame argument, the dialog will stay on top of the parent Frame. I'm not sure how this works with default dialogs created with JOptionDialog, but it sould be similar.

Actually, this is probably the wrong forum to ask such a question. We have a GUI forum where people will probably be more knowledgeable about such details.

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!