From 01837a9575a0b5400df2629bb2bfa237dad035dc Mon Sep 17 00:00:00 2001 From: alexsch Date: Wed, 30 May 2012 14:46:49 +0400 Subject: [PATCH] 7146131: [macosx] When click the show optionpane button,it display partly of dialog and hung until timeout Reviewed-by: rupashka --- src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java b/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java index ea09bf8a9..fca447849 100644 --- a/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java +++ b/src/macosx/classes/com/apple/laf/AquaInternalFrameUI.java @@ -257,7 +257,7 @@ public class AquaInternalFrameUI extends BasicInternalFrameUI implements SwingCo } 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; -- GitLab