Makes the {@code Dialog} visible. If the dialog and/or its ownerare not yet displayable, both are made displayable. The dialog will be validated prior to being made visible. If the dialog is already visible, this will bring the dialog to the front.
If the dialog is modal and is not already visible, this call will not return until the dialog is hidden by calling hide or dispose. It is permissible to show modal dialogs from the event dispatching thread because the toolkit will ensure that another event pump runs while the one which invoked this method is blocked.
@see Component#hide
@see Component#isDisplayable
@see Component#validate
@see #isModal
@see Window#setVisible(boolean)
@deprecated As of JDK version 1.5, replaced by{@link #setVisible(boolean) setVisible(boolean)}.