Solved

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

Posted on 2004-04-29
3
245 Views
Last Modified: 2012-06-21
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
Comment
Question by:lakinm1
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
mayankeagle earned 250 total points
ID: 10958764
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
 
LVL 30

Expert Comment

by:mayankeagle
ID: 10958795
If its a JOptionPane, it will always be modal.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to adjust sheet 1 81
Visual xHarbour 1 76
c# combobox autocomplete behavior 6 92
groupSum6 challenge 6 35
This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now