This week's book giveaway is in the Python forum.
We're giving away four copies of High Performance Python for Data Analytics and have Tiago Rodrigues Antao on-line!
See this thread for details.
Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

modeless dialogs in swing

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Text books talk only about modal dialog in swing. Is there any way to create a modeless dialog?
thanks in advance and best regards,
dharini
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi dharini,
you can have both modal and non modal dialogs in swing.
JDialog defines following constructors.
------------------------

JDialog()
Creates a non-modal dialog without a title and without a specified Frame owner.
JDialog(Dialog owner)
Creates a non-modal dialog without a title with the specifed Dialog as its owner.
JDialog(Dialog owner, boolean modal)
Creates a modal or non-modal dialog without a title and with the specified owner dialog.
JDialog(Dialog owner, String title)
Creates a non-modal dialog with the specified title and with the specified owner dialog.
JDialog(Dialog owner, String title, boolean modal) Creates a modal or non-modal dialog with the specified title and the specified owner frame.

-------------------------
In first two and fourth constructors the created dialog is non modal .while in rest of the constructors u can pass true/false depending on whether u want your dialog to be modal/nonmodal.
hope it helps
regards
deeksha

[This message has been edited by deekasha gunwant (edited February 06, 2001).]
 
dharini thyagaraj
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Deeksha!
 
reply
    Bookmark Topic Watch Topic
  • New Topic