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)
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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
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) • OK and Cancel in a modal dialog box
GUI Components(Controls) • Label, Textbox, Button, Check Box, Radio Button, List, … • Properties and event handlers of GUI components
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)