• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dialog modality problem

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11066
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11066
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JOptionPane showXXXDialog methods. If you pass the proper parent, these dialogs will be modal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic