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:
committed by
Noel Grandin
parent
47a2d7642d
commit
14cccfab81
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -134,7 +134,7 @@ class SelectionDialog extends JDialog
|
||||
|
||||
void close ()
|
||||
{
|
||||
hide();
|
||||
setVisible(false);
|
||||
dispose();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user