diff options
-rw-r--r-- | toolkit/test/accessibility/AccessibleSelectionHandler.java | 3 | ||||
-rw-r--r-- | toolkit/test/accessibility/AccessibleTextHandler.java | 4 | ||||
-rw-r--r-- | toolkit/test/accessibility/SelectionDialog.java | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/toolkit/test/accessibility/AccessibleSelectionHandler.java b/toolkit/test/accessibility/AccessibleSelectionHandler.java index 546bd6913941..2d4f64f5d44d 100644 --- a/toolkit/test/accessibility/AccessibleSelectionHandler.java +++ b/toolkit/test/accessibility/AccessibleSelectionHandler.java @@ -140,6 +140,7 @@ class AccessibleSelectionHandler @Override public void performAction (AccessibleTreeNode aNode, int nIndex) { - new SelectionDialog( (AccTreeNode)aNode ).show(); + SelectionDialog selectionDialog = new SelectionDialog( (AccTreeNode)aNode ); + selectionDialog.setVisible(true); } } diff --git a/toolkit/test/accessibility/AccessibleTextHandler.java b/toolkit/test/accessibility/AccessibleTextHandler.java index 21902535a9d6..d29eefdab6ae 100644 --- a/toolkit/test/accessibility/AccessibleTextHandler.java +++ b/toolkit/test/accessibility/AccessibleTextHandler.java @@ -480,7 +480,7 @@ class AccessibleTextHandler extends NodeHandler } if( aDialog != null ) - aDialog.show(); + aDialog.setVisible(true); } } @@ -550,7 +550,7 @@ abstract class TextActionDialog extends JDialog void cancel() { - hide(); + setVisible(false); dispose(); } diff --git a/toolkit/test/accessibility/SelectionDialog.java b/toolkit/test/accessibility/SelectionDialog.java index 5ca8ca846654..10d8413b29f5 100644 --- a/toolkit/test/accessibility/SelectionDialog.java +++ b/toolkit/test/accessibility/SelectionDialog.java @@ -134,7 +134,7 @@ class SelectionDialog extends JDialog void close () { - hide(); + setVisible(false); dispose(); } |