Kaydet (Commit) 14cccfab authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Noel Grandin

As of JDK version 1.5, show() and hide() in Dialog have been deprecated

Change-Id: If96e40ebe2c59f31ca4e2b81c6583eb7f8d5ec81
Reviewed-on: https://gerrit.libreoffice.org/11873Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 47a2d764
...@@ -140,6 +140,7 @@ class AccessibleSelectionHandler ...@@ -140,6 +140,7 @@ class AccessibleSelectionHandler
@Override @Override
public void performAction (AccessibleTreeNode aNode, int nIndex) public void performAction (AccessibleTreeNode aNode, int nIndex)
{ {
new SelectionDialog( (AccTreeNode)aNode ).show(); SelectionDialog selectionDialog = new SelectionDialog( (AccTreeNode)aNode );
selectionDialog.setVisible(true);
} }
} }
...@@ -480,7 +480,7 @@ class AccessibleTextHandler extends NodeHandler ...@@ -480,7 +480,7 @@ class AccessibleTextHandler extends NodeHandler
} }
if( aDialog != null ) if( aDialog != null )
aDialog.show(); aDialog.setVisible(true);
} }
} }
...@@ -550,7 +550,7 @@ abstract class TextActionDialog extends JDialog ...@@ -550,7 +550,7 @@ abstract class TextActionDialog extends JDialog
void cancel() void cancel()
{ {
hide(); setVisible(false);
dispose(); dispose();
} }
......
...@@ -134,7 +134,7 @@ class SelectionDialog extends JDialog ...@@ -134,7 +134,7 @@ class SelectionDialog extends JDialog
void close () void close ()
{ {
hide(); setVisible(false);
dispose(); dispose();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment