harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r606873 - /harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/AppletFrame.java
Date Wed, 26 Dec 2007 10:09:32 GMT
Author: apetrenko
Date: Wed Dec 26 02:09:23 2007
New Revision: 606873

URL: http://svn.apache.org/viewvc?rev=606873&view=rev
Log:
Pack and init are reordered
Init should be called after pack to make components displayable

Modified:
    harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/AppletFrame.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=606873&r1=606872&r2=606873&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
Wed Dec 26 02:09:23 2007
@@ -45,12 +45,11 @@
 		applet.setPreferredSize(new Dimension(appletInfo.getWidth(), appletInfo.getHeight()));
 		add(applet, BorderLayout.CENTER);
 
-		// Start applet
-		applet.init();
-		applet.start();
-
-		// Make frame visible
+		// Start applet and make frame visible
+		// Init should be called after pack to make components displayable
 		pack();
+		applet.init();
 		setVisible(true);		
+		applet.start();
 	}
 }



Mime
View raw message