aspose file tools*
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
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