diff options
author | Kenneth Russel <[email protected]> | 2005-11-10 06:48:02 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-11-10 06:48:02 +0000 |
commit | 0f6b7600e0b236cd5d42750ebd1421dcf76ca1ae (patch) | |
tree | a1abdd04912b655ff743eedca8dd09a9c7410ece /src/demos/util | |
parent | c01ade1249ca5175510a4d6a699ac0772c6b11d9 (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/demos/util')
-rwxr-xr-x | src/demos/util/ScreenResSelector.java | 6 |
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(); } }); |