0

I have a modal dialog in Java and want to know when the user clicks outside the dialog (on another window in the application) instead of just having it go "blong" and flash the border. For such things as picking a color etc etc.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
peterk
  • 5,136
  • 6
  • 33
  • 47

1 Answers1

5

Make the dialog non-modal and you can still interact with the rest of the application.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • True unless like i my case I want to intercecpt the events before they get to and activate the other application widows. That is without installing a filter on every component in the application or putting a filter on the AWT event queue. – peterk Jan 30 '13 at 02:34
  • What is it exactly the GUI **should** do, if you could achieve your aim? Nothing? Providing no visual or audio feedback to the end user would make for an unusable GUI. Can you name (link to) any (free) app. that supports the feature you wish to implement? – Andrew Thompson Jan 30 '13 at 02:37