1 / 5

Main Window vs. Dialog Box

Main Window vs. Dialog Box. Main Window. Dialog Box. Initialization. Result. Dialog Box. Modal and modeless dialog box Common and custom dialog boxes Bring up and down a dialog box Initialization from main window to dialog box Data returning from the dialog box GUI components (Controls)

kalona
Download Presentation

Main Window vs. Dialog Box

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Main Window vs. Dialog Box Main Window Dialog Box Initialization Result

  2. Dialog Box • Modal and modeless dialog box • Common and custom dialog boxes • Bring up and down a dialog box • Initialization from main window to dialog box • Data returning from the dialog box • GUI components (Controls) • OK and Cancel in a modal dialog box

  3. GUI Components(Controls) • Label, Textbox, Button, Check Box, Radio Button, List, … • Properties and event handlers of GUI components

  4. Controls in Java (1) • Control Properties in common: (Name), Text, Location, Size, Visible, Enabled • JLabel: (getText, setText) • JButton(getText, setText; ActionListner: actionPerformed) • JTextField(getText, setText; ActionListner: actionPerformed)

  5. An Example

More Related