32.10. Programming Exercises

 
[Page 1002]

Review Questions

Section 29.2 Menus

29.1 How do you create a menu bar?
29.2 How do you create a submenu? How do you create a check box menu item? How do you create a radio button menu item?
29.3 How do you add a separator in a menu?
29.4 How do you set an icon and a text in a menu item? How do you associate keyboard mnemonics and accelerators in a menu item?

Section 29.3 Popup Menus

29.5 How do you create a popup menu? How do you show a popup menu?
29.6 Describe a popup trigger.

Section 29.4 JToolBar

29.7 What is the layout manager used in JToolBar ? Can you change the layout manager?
29.8 How do you add buttons into a JToolBar ? How do you add a JToolBar into a frame or an applet?

Section 29.5 Processing Actions Using the Action Interface

29.9 What is the Action interface for?
29.10 How do you add an Action object to a JToolBar , JMenu , JButton , JRadioButton , and JCheckBox ?

Section 29.6 JOptionPane Dialogs

29.11 Describe the standard dialog boxes created using the JOptionPane class.
29.12 How do you create a message dialog? What are the message types? What is the button in the message dialog?
29.13 How do you create a confirmation dialog? What are the button option types?
29.14 How do you create an input dialog with a text field for entering input? How do you create a combo box dialog for selecting values as input? How do you create a list dialog for selecting values as input?

Sections 29.7 “29.10

29.15 How do you show an instance of JDialog ? Is a standard dialog box created using the static methods in JOptionPane modal? Is an instance of JDialog modal?
29.16 How do you display an instance of JColorChooser ? Is an instance of JColorChooser modal? How do you obtain the selected color ?
29.17 How do you display an instance of JFileChooser ? Is an instance of JFileChooser modal? How do you obtain the selected file? What is the return type for getSelectedFile() and getSelectedDirectory() ? How do you set the current directory as the default directory for a JFileChooser dialog?
29.18 How do you create an internal frame?
 


Introduction to Java Programming-Comprehensive Version
Introduction to Java Programming-Comprehensive Version (6th Edition)
ISBN: B000ONFLUM
EAN: N/A
Year: 2004
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net