| 
      
      
      From: <eli...@us...> - 2008-01-18 10:31:07
      
     | 
| Revision: 2931
          http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2931&view=rev
Author:   elias_naur
Date:     2008-01-18 02:29:01 -0800 (Fri, 18 Jan 2008)
Log Message:
-----------
AWTGears: Make the canvas the same size as the Gears test
Modified Paths:
--------------
    trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTGears.java
Modified: trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTGears.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTGears.java	2008-01-07 18:29:04 UTC (rev 2930)
+++ trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTGears.java	2008-01-18 10:29:01 UTC (rev 2931)
@@ -76,9 +76,10 @@
 	 */
 	public AWTGears() throws LWJGLException {
 		setTitle("Gears");
-		setSize(300, 300);
 		setBackground(Color.BLACK);
-		add(new AWTGearsCanvas());
+		AWTGearsCanvas canvas = new AWTGearsCanvas();
+		canvas.setSize(300, 300);
+		add(canvas);
 		addWindowListener(new WindowAdapter() {
 			public void windowClosing(WindowEvent e) {
 				dispose();
@@ -86,6 +87,7 @@
 			}
 		});
 		setResizable(true);
+		pack();
 		setVisible(true);
 	}
 	
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |