]> granicus.if.org Git - postgis/commitdiff
fix compiler warning due to deprecated method
authorMarkus Schaber <markus@schabi.de>
Tue, 18 Jul 2006 18:13:57 +0000 (18:13 +0000)
committerMarkus Schaber <markus@schabi.de>
Tue, 18 Jul 2006 18:13:57 +0000 (18:13 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2408 b70326c6-7e19-0410-871a-916f4a2858ee

jdbc2/src/examples/TestJava2d.java

index 2d61ab1a24ba44ad003da1a15e1c7420247d21bd..c32d4859ed4deea15308785ded149b27dfc70be4 100644 (file)
@@ -78,7 +78,7 @@ public class TestJava2d {
 
         window.addWindowListener(new EventHandler());
 
-        window.show();
+        window.setVisible(true);
     }
 
     static Rectangle2D calcbbox(Shape[] geometries) {
@@ -159,7 +159,7 @@ public class TestJava2d {
         }
 
         public void windowClosing(WindowEvent e) {
-            e.getWindow().hide();
+            e.getWindow().setVisible(false);
             System.exit(0);
         }