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>
This commit is contained in:
Robert Antoni Buj i Gelonch
2014-10-09 13:02:21 +02:00
committed by Noel Grandin
parent 47a2d7642d
commit 14cccfab81
3 changed files with 5 additions and 4 deletions

View File

@@ -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);
}
}

View File

@@ -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();
}

View File

@@ -134,7 +134,7 @@ class SelectionDialog extends JDialog
void close ()
{
hide();
setVisible(false);
dispose();
}