7146131: [macosx] When click the show optionpane button,it display partly of dialog and hung until timeout
authoralexsch
Wed, 30 May 2012 14:46:49 +0400
changeset 12823 8db577a5c434
parent 12822 611c4a708b4e
child 12824 76a5b3724145
7146131: [macosx] When click the show optionpane button,it display partly of dialog and hung until timeout Reviewed-by: rupashka
jdk/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java
--- a/jdk/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java	Wed May 30 10:58:11 2012 +0800
+++ b/jdk/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java	Wed May 30 14:46:49 2012 +0400
@@ -257,7 +257,7 @@
     }
 
     public Dimension getPreferredSize(JComponent x) {
-        Dimension preferredSize = super.getMinimumSize(x);
+        Dimension preferredSize = super.getPreferredSize(x);
         Dimension minimumSize = frame.getMinimumSize();
         if (preferredSize.width < minimumSize.width) {
             preferredSize.width = minimumSize.width;