wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
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: http://aspose.com/file-tools
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