harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r628180 - in /harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer: AppletFrame.java ViewerAppletStub.java
Date Fri, 15 Feb 2008 21:53:56 GMT
Author: ayza
Date: Fri Feb 15 13:53:54 2008
New Revision: 628180

URL: http://svn.apache.org/viewvc?rev=628180&view=rev
Log:
Fix for HARMONY-5520 was comitted. Hope we don't have code freeze in effect yet. 

Modified:
    harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/AppletFrame.java
    harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/ViewerAppletStub.java

Modified: harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/AppletFrame.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/AppletFrame.java?rev=628180&r1=628179&r2=628180&view=diff
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/AppletFrame.java
(original)
+++ harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/AppletFrame.java
Fri Feb 15 13:53:54 2008
@@ -76,7 +76,7 @@
         setLayout(new BorderLayout());
         JPanel appletPanel = new JPanel();
         appletPanel.add(applet);
-        add(appletPanel, BorderLayout.NORTH);
+        add(appletPanel, BorderLayout.WEST);
         
         // Create status pane
         JPanel panel = new JPanel();

Modified: harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/ViewerAppletStub.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/ViewerAppletStub.java?rev=628180&r1=628179&r2=628180&view=diff
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/ViewerAppletStub.java
(original)
+++ harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/ViewerAppletStub.java
Fri Feb 15 13:53:54 2008
@@ -21,6 +21,7 @@
 import java.applet.AppletStub;
 import java.awt.Component;
 import java.awt.Dimension;
+import java.awt.Window;
 import java.net.URL;
 
 class ViewerAppletStub implements AppletStub {
@@ -55,6 +56,17 @@
     }
     
     public void appletResize(int width, int height) {
+        Component cmp = appletPane;
+
         appletPane.setPreferredSize(new Dimension(width, height));
+
+        while (cmp != null) {
+            cmp = cmp.getParent();
+
+            if (cmp instanceof Window) {
+                ((Window) cmp).pack();
+                break;
+            }
+        }
     }
 }



Mime
View raw message