summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-11-10 06:48:02 +0000
committerKenneth Russel <[email protected]>2005-11-10 06:48:02 +0000
commit0f6b7600e0b236cd5d42750ebd1421dcf76ca1ae (patch)
treea1abdd04912b655ff743eedca8dd09a9c7410ece /src
parentc01ade1249ca5175510a4d6a699ac0772c6b11d9 (diff)
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
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/util/ScreenResSelector.java6
1 files 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();
}
});