File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Fixing JDialog's bounds to the parent frame's
It's not a secret anymore!