31.14. Tree Events

 
[Page 962]

Review Questions

Section 28.2 Swing Container Structures

28.1 Since JButton is a subclass of Container , can you add a button inside a button?
28.2 How do you set an image icon in a JFrame 's title bar? Can you set an image icon in a JApplet 's title bar?
28.3 Which of the following are the properties in JFrame , JApplet , and JPanel ?
 contentPane, iconImage, jMenuBar, resizable, title 

Section 28.3 Layout Managers

28.4 How does the layout in Java differ from the ones in Visual Basic and Delphi?
28.5 Discuss the factors that determine the size of the components in a container.
28.6 Discuss the properties preferredSize , minimumSize , and maximumSize .
28.7 Discuss the properties alignmentX and alignmentY .
28.8 What is a CardLayout manager? How do you create a CardLayout manager?
28.9 What is a GridBagLayout manager? How do you create a GridBagLayout manager?
28.10 Can you use absolute positioning in Java? How do you use absolute positioning? Why should you avoid using absolute positioning?
28.11 What is BoxLayout ? How do you use BoxLayout ? How do you use fillers to separate the components?
28.12 What is OverlayLayout ? How do you use OverlayLayout ?
28.13 What is SpringLayout ? How do you use SpringLayout ?

Sections 28.4 “28.7

28.14 How do you create a custom layout manager?
28.15 What is JScrollPane ? How do you use JScrollPane ?
28.16 What is JTabbedPane ? How do you use JTabbedPane ?
28.17 What is JSplitPane ? How do you use JSplitPane ?
28.18 Can you specify a layout manager in Box , JScrollPane , JTabbedPane , and JSplitPane ?

Section 28.8 Swing Borders

28.19 How do you create a titled border, a line border, a bevel border, and an etched border?
28.20 Can you set a border for every Swing GUI component? Can a border object be shared by different GUI components?
28.21 What package contains Border , BevelBorder , CompoundBorder , EmptyBorder , EtchedBorder , LineBorder , MatteBorder , TitledBorder , and BorderFactory ?
 


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