harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r587000 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
Date Mon, 22 Oct 2007 05:45:59 GMT
Author: apetrenko
Date: Sun Oct 21 22:45:58 2007
New Revision: 587000

URL: http://svn.apache.org/viewvc?rev=587000&view=rev
Log:
Patvh for HARMONY-4756 "[classlib][swing] JFrame.pack() sets window size 
incorrectly"

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java?rev=587000&r1=586999&r2=587000&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
Sun Oct 21 22:45:58 2007
@@ -376,6 +376,7 @@
 
     @Override
     public Dimension getPreferredSize() {
+        getUI().getRootView(this).setSize(0,0);
         Dimension d = super.getPreferredSize();
         Container parent = getParent();
         if (parent instanceof JViewport) {



Mime
View raw message