JDK-4219710 : JOptionPane resizability
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6,1.2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_nt
  • CPU: generic,x86
  • Submitted: 1999-03-12
  • Updated: 2000-03-22
  • Resolved: 2000-03-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
1.4.0 betaFixed
Related Reports
Duplicate :  

Name: vi73552			Date: 03/11/99

A 'setResizable(boolean resizable)' method for JOptionPane would
be nice.=20

I've tried calling setMaximumSize and setMinimumSize=20
from the superclass Component with the same Dimension value,=20
but this doesn't seem to work.
(Review ID: 55070)=20

Name: dbT83986			Date: 05/19/99

Invoking 'setMinimumSize' on an instance of JOptionPane does
not prevent the user from resizing the pane to a smaller
(Review ID: 83275)

Name: krT82822			Date: 11/21/99

java version "1.2"
Classic VM (build JDK-1.2-V, native threads)

We are using JOption Pane to display error messages
as well as confirmation boxes.
Usually message boxes are not resizable
Hence we feel that JOption Pane should not be resizable
(Review ID: 98102)

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta FIXED IN: merlin-beta INTEGRATED IN: merlin-beta

WORK AROUND Name: vi73552 Date: 03/11/99 =20 None ======================================================================

EVALUATION User resizing is controlled by java.awt.Dialog's resizable property, which defaults to true. It does seem like we ought to initialize it to false for option dialogs. Note that if a program wishes to control the value of this property, they can invoke JOptionPane's createDialog() method (which builds the necessary dialog) and then invoke setResizable() as appropriate on that dialog before showing it. amy.fowler@Eng 2000-03-10