This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes clarification about Dialog container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "clarification about Dialog container" Watch "clarification about Dialog container" New topic
Author

clarification about Dialog container

mark stone
Ranch Hand

Joined: Dec 18, 2001
Posts: 417
these two constructors would mean that it would be a dialog inside another dialog. right ? (similar to situation when dialog is inside a Frame)
did i get it correct ??
(1) Dialog(Dialog owner)
Constructs an initially invisible, non-modal Dialog with an empty title and the specified owner dialog.
(2) Dialog(Dialog owner, String title)
Constructs an initially invisible, non-modal Dialog with the specified owner dialog and title.
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
correct
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
It also means that if you give an owner to your new Dialog, it will be placed relatively to the owner. If you give null, it will be placed as the implementation wants, that is, generally in the upper right corner of the screen or at a random location.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
Consider Paul's rocket mass heater.
 
subject: clarification about Dialog container
 
Similar Threads
invoking dialog box from Applet results in Hang of IE browser
Modal JWindow
Modal JWindow
Model Dialog From JApplet
modeless dialogs in swing