Jogamp
TestGearsES2NEWT: Print bounds @ window resized/moved instead of just x/y
authorSven Gothel <sgothel@jausoft.com>
Sat, 26 Sep 2015 05:41:10 +0000 (07:41 +0200)
committerSven Gothel <sgothel@jausoft.com>
Sat, 26 Sep 2015 05:41:10 +0000 (07:41 +0200)
src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java

index 6fb7bab..4d37445 100644 (file)
@@ -182,11 +182,11 @@ public class TestGearsES2NEWT extends UITestCase {
 
         glWindow.addWindowListener(new WindowAdapter() {
             public void windowResized(final WindowEvent e) {
-                System.err.println("window resized: "+glWindow.getX()+"/"+glWindow.getY()+" "+glWindow.getSurfaceWidth()+"x"+glWindow.getSurfaceHeight());
+                System.err.println("window resized: "+glWindow.getBounds()+" "+glWindow.getSurfaceWidth()+"x"+glWindow.getSurfaceHeight());
                 NEWTDemoListener.setTitle(glWindow);
             }
             public void windowMoved(final WindowEvent e) {
-                System.err.println("window moved:   "+glWindow.getX()+"/"+glWindow.getY()+" "+glWindow.getSurfaceWidth()+"x"+glWindow.getSurfaceHeight());
+                System.err.println("window moved:   "+glWindow.getBounds()+" "+glWindow.getSurfaceWidth()+"x"+glWindow.getSurfaceHeight());
                 NEWTDemoListener.setTitle(glWindow);
             }
         });
http://JogAmp.org git info: FAQ, tutorial and man pages.