From 0f6b7600e0b236cd5d42750ebd1421dcf76ca1ae Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 10 Nov 2005 06:48:02 +0000 Subject: Fixed Issue 169: Deprecated Swing calls in ScreenResSelector.java git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@147 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/util/ScreenResSelector.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/demos/util/ScreenResSelector.java b/src/demos/util/ScreenResSelector.java index 07df833..5b085de 100755 --- a/src/demos/util/ScreenResSelector.java +++ b/src/demos/util/ScreenResSelector.java @@ -82,7 +82,7 @@ public class ScreenResSelector { and requests selection of one of them. Returns the selected one. */ public static DisplayMode showSelectionDialog() { SelectionDialog dialog = new SelectionDialog(); - dialog.show(); + dialog.setVisible(true); dialog.waitFor(); return dialog.selected(); } @@ -186,7 +186,7 @@ public class ScreenResSelector { synchronized(monitor) { monitor.notify(); } - hide(); + setVisible(false); dispose(); } }); @@ -200,7 +200,7 @@ public class ScreenResSelector { synchronized(monitor) { monitor.notify(); } - hide(); + setVisible(false); dispose(); } }); -- cgit v1.2.3