* A Dialog is a top-level window with a title and a border
* A dialog must have either a frame or another dialog as its Parent.
* When the owner window of a visible dialog is hidden or minimized, the
dialog will automatically be hidden from the user.
* A dialog can be either modeless(the default) or modal.
* A modal dialog is one which blocks input to all other toplevel windows.
* Dialogs are capable of generating the following window events:
WindowOpened, WindowClosing,
WindowClosed, WindowActivated,
WindowDeactivated.
1. Dialog(Dialog owner)
2. Dialog(Dialog owner, String title)
3. Dialog(Dialog owner, String title,boolean modal)
4. Dialog(Frame owner)
5. Dialog(Frame owner, boolean modal)
6. Dialog(Frame owner, String title)7.Dialog(Frame owner, String title,boolean modal)
1. void dispose() Disposes the Dialog and then causes show() to return if it is currently blocked.
2. String getTitle() Gets the title of the dialog.
3. void hide() Hides the Dialog.
4. boolean isModal() Indicates whether the dialog is modal.
5. boolean isResizable() Indicates whether this dialog is resizable by the user.
6. void setModal(boolean b) Specifies whether this dialog should be modal.
7. void setResizable(boolean resizable) Sets whether this dialog is resizable by the user.
8. void setTitle(String title) Sets the title of the Dialog.
9. void show() Makes the Dialog visible

