Dialog Boxes. •A dialog box is a small graphical window that. displays a message to the user or requests. input. • A variety of dialog boxes can be displayed using. the JOptionPane class. • Two of the dialog boxes are: – Message Dialog - a dialog box that displays a. message.