Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.
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( ) |
| |