File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
Valentin Crettaz
Gold Digger

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.

[Blog] [Blogroll] [My Reviews] My Linked In
I agree. Here's the link:
subject: clarification about Dialog container
It's not a secret anymore!