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.
Modal Dialog Boxes
I. Introduction
A modal dialog box blocks user input to all other windows in the same application when it is visible. Users have to close a modal dialog box before other windows in the same application can get focus. Accordingly, only one modal dialog boxes shown at one time. Modal dialog boxes are commonly used in Graphic User Interface (GUI) to display warning, errors, confirmations, etc.
II. Types of Modal Dialog Box
Buttons | Operations | ||||
---|---|---|---|---|---|
Ok |
Cancel |
| Reset |
| |
III. VTT Modal Dialog Java Class/Methods
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( ) |
| |