Modeless Dialog Boxes
I. Introduction
A modeless dialog box does not block user input. Accordingly, modeless dialog boxes can grow in number. Modeless dialog boxes are commonly used in Graphic User Interface (GUI) to display and update data of the system so users can monitor/change the system data through dialog box at the same time. There are two types of modeless dialog boxes:
II. Modeless Dialog Box: Display Data Only
Buttons | Operations |
---|---|
Close |
|
GUI Component | GUI Controller |
---|---|
JButton | ActionListener |
JTextField | ActionListener |
JComboBox | ActionListener |
JCheckBox | ItemListener |
JRadioButton | ActionListener |
Accessibility | Method | Procedures | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public | Constructor( ) |
public | Show( ) |
| public | UpdateGui( ) |
| private | UpdateGuiFromGlobal( ) |
| private | InitGuiControllers( ) |
| private | InitGuiComponents( ) |
| |
III. Modeless Dialog Box: Update Data
Buttons | Operations | ||||||
---|---|---|---|---|---|---|---|
Ok |
Cancel |
| Apply |
| Reset |
| |
GUI Component | GUI Controller |
---|---|
JButton | ActionListener |
JTextField | ActionListener |
JComboBox | ActionListener |
JCheckBox | ItemListener |
JRadioButton | ActionListener |
Accessibility | Method | Procedures | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public | Constructor( ) |
public | Show( ) |
| public | UpdateGui( ) |
| private | UpdateLocalVarsFromGui( ) |
| private | UpdateLocalVarsFromGlobal( ) |
| private | UpdateGuiFromLocalVars( ) |
| private | InitGuiControllers( ) |
| private | InitGuiComponents( ) |
| |