wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Fixing JDialog's bounds to the parent frame's 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 » Java » Swing / AWT / SWT
Bookmark "Fixing JDialog Watch "Fixing JDialog New topic

Fixing JDialog's bounds to the parent frame's


Joined: Sep 06, 2001
Posts: 22
Is it possible to "Fix" a modal JDialog (that is launched from a parent frame) to its parent frame's bounds? I mean, the user should not be able to move the dialog outside the parent frame's location/co-ordinates. Is this achievable?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121


Please re-register with a name that follows the guidelines of the JavaRanch naming conventions. We require all registered user names to be in the form "first name" + space + "last name". Thanks!


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
It is sorta covered in the JavaRanch Style Guide.
subject: Fixing JDialog's bounds to the parent frame's
Similar Threads
Making a ScrollPane resize along with its parent Frame
Adding component in JPanel
adding popup ?
Maximizing the Jframe in Swings
frame parent URL