changeset 5085:fd9fe385f63c

7146131: [macosx] When click the show optionpane button,it display partly of dialog and hung until timeout Reviewed-by: anthony
author alexp
date Mon, 05 Mar 2012 23:51:33 +0400
parents 9bc378ddbc27
children 4bf554db8ed9
files src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java	Mon Mar 05 23:41:10 2012 +0400
+++ b/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java	Mon Mar 05 23:51:33 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;