Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How create a non-resizable dialog

843806Aug 15 2007 — edited Mar 19 2009
Hello!

If my understanding is correct, setting the setResizable(false) disables resizing of the dialog.
But in my case, the dialog I've created can still be resized even dialogs created by JOptionPane.

Procedure to replicate the problem:

1. Create a dialog and call setResizable(false).
2. When the dialog is displayed right click on the title bar of the dialog and a menu appears
3. Select maximize.

Result:
The dialog is maximize.

Is there another way to disable resizing in JDialog??

Note:
This problem occur in JRE 6.0 but not on lower versions of JRE.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2009
Added on Aug 15 2007
6 comments
696 views