Solved

Full application modal JDialog in JApplet.

Posted on 1998-09-21
3
507 Views
Last Modified: 2012-05-04
In the JApplet I have a menubar with different menu options.
I need to display different full application modal JDialogs ( user can not interact with any other windows in application, but can interact with any windows of other applications on display) based on menu option. I have tried different solutions which works fine in AppletViewer and doesn't work in a browser. If anyone have a solution to this problem please send mail to kshaik@hotmail.com.

Thanks in advance.
0
Comment
Question by:kshaik
3 Comments
 
LVL 5

Expert Comment

by:msmolyak
ID: 1224726
What exactly works in AppletViewer but does not work in a browser? What particular problems are you experiencing?
0
 

Author Comment

by:kshaik
ID: 1224727
my JApplet have two menu options 1. show JTree 2. show JDialog (this should be full application modal dialog). when I selected show JTree option it creates an JInternal frame and adds a JTree to its contentpane and shows the JTree; then I have selected show JDialog ( I have created this as a modal JDialog) it brings up JDialog, at this point I should not able to select anything in the JTree ( or any other window in the applet), unless the JDialog is disposed.. This works fine in AppletViewer and when I executed the same applet in browser I can able to do selections in the tree ( or any other window).
0
 
LVL 1

Accepted Solution

by:
Twix earned 100 total points
ID: 1224728
Hello kshaik,

Modality is a stick issue in browsers. Dialogs can be modal only to a Frame. Technically this means, for applets they will be able to be modal only to the applet. If you have an object that you want to be modal do a specific parent frame, just pass in modalDialog(myFrame1.getParent); People would be able to use other applets on the page while this dialog is up. Some people try a getParent to get the parent frame of the Applet to make it modal to the browser itself, however this is not garenteed to work on any given browser.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 20
split53 challenge 7 96
tomcat administrtor 12 47
Tomcat: Unable to run tomcat service. 2 19
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

772 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