Java Swing Dialog

A dialog box is a component which allows user to communicate with computer by entering inter-related data, responding to a question or confirming a his/her action. There are two kinds of dialog boxes: model and modeless. A modal dialog box blocks interaction from the parent window which initiates the dialog while a modeless dialog does not. A good UI design should use modeless dialog box as much as possible since it does not force user into a specific mode of operation.

In Java swing, there are several ways to create a dialog boxes:

  • Was this tutorial helpful ?
  • YesNo