• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How modal is too modal?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I want to have a JDialog whose job is to connect to an external device. While the dialog is up, the application should be stuck on the dialog. This I understand to be 'modal.' The problem is that my modal dialog is even blocking itself out of doing anything. The Code:



It prints "1", but doesn't print "2" until the dialog is closed. How do I make it so the connect dialog is locked as the enabled window, but without locking itself out?

Edit: It occurs to me that this might just not be the job of a dialog. Can I make a JFrame that will be 'modal' as I understand the word?
[ June 06, 2008: Message edited by: Nicholas George ]
 
Nicholas George
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Figured this one out. Just have to handle things with events...
 
reply
    Bookmark Topic Watch Topic
  • New Topic