diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-09 13:02:21 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-09 11:37:52 +0000 |
commit | 14cccfab8111c61bf6707eef423abe79e95f5572 (patch) | |
tree | 3447178b833eeed4da0015f1df0cc6dca063e322 | |
parent | 47a2d7642d249d70b5da0c330a73f3a0032e4bba (diff) |
As of JDK version 1.5, show() and hide() in Dialog have been deprecated
Change-Id: If96e40ebe2c59f31ca4e2b81c6583eb7f8d5ec81
Reviewed-on: https://gerrit.libreoffice.org/11873
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-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(); } |