aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Dialog modality problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Dialog modality problem" Watch "Dialog modality problem" New topic
Author

Dialog modality problem

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
Hi,

I'm using a java dialog to display a message. In my application there is Jdialog at bottom of the screen and browser is also used.
When message is shown on the screen I want to block the clicks on browser and dialog.
I've tried Modality option but its not working.

How can I achieve this ?

thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

What do you mean "at the bottom of your screen". You cannot embed the JDialog like any standard component to a parent.
You mention application as well as "browser is also used". Is this an applet?

What exactly are you trying to do, what have you done so far, and where exactly are you stuck?
You need to TellTheDetails


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
I have jDialog after showing a message as dialog I dont want to click on the Jdialog(other than message dialog)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Use JOptionPane showXXXDialog methods. If you pass the proper parent, these dialogs will be modal.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dialog modality problem