• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

Modal Dialogs and Applets - Force dialogs to always be in front of browser

Hi

I have an applet that runs in a browser and it opens up modal dialogs. Sometimes, when my browser is open and I switch to another application (say Outlook) and back to my browser, any open modal java dialogs always show up behind the browser and thus, gives the illusion that the browser has frozen up

How can I always force my modal dialogs to always be in front of the applet, even when I switch to another application and back to the browser?

Any help will be greatly appreciated as this is a huge bottleneck
Thanks
0
lakinm1
Asked:
lakinm1
  • 2
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
Do you use JOptionPane or the Dialog class for the dialog-boxes? The Dialog class has a setModal ( boolean ) method which can be used to disable the modal behaviour of the dialog-box.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
If its a JOptionPane, it will always be modal.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now