34.4. The Servlet API

 
[Page 1040 ( continued )]

Review Questions

Sections 30.2 “30.3

30.1 What is model-view-controller architecture?
30.2 How do you do implement models, views, and controllers?
30.3 What are the variations of MVC architecture?

Section 30.4 Swing Model-View-Controller Architecture

30.4 Does each Swing GUI component (except containers such as JPanel ) have a property named model ? Is the type of model the same for all the components ?
30.5 Does each model interface have a default implementation class? If so, does a Swing component use the default model class if no model is specified?

Sections 30.5 “30.6

30.6 If you create a JSpinner without specifying a data model, what is the default model?
30.7 What is the internal data structure for storing data in SpinnerListModel ? How do you convert an array to a list?

Sections 30.7 “30.9

30.8 Does JList have a method, such as addItem , for adding an item to a list? How do you add items to a list? Can JList display icons and custom GUI objects in a list? Can a list item be edited? How do you initialize data in a list? How do you specify the maximum number of visible rows in a list without scrolling? How do you specify the height of a list cell ? How do you specify the horizontal margin of list cells ?
30.9 How do you create a list model? How do you add items to a list model? How do you remove items from a list model?
30.10 What are the three list-selection modes? Can you set the selection modes directly in an instance of JList ? How do you obtain the selected item(s)?
30.11 How do you create a custom list cell renderer?
30.12 What is the handler for handling the ListSelectionEvent ?

Section 30.10 JComboBox

30.13 Can multiple items be selected from a combo box? Can a combo box item be edited? How do you specify the maximum number of visible rows in a combo box without scrolling? Can you specify the height of a combo box cell using a method in JComboBox ? How do you obtain the selected item in a combo box?
30.14 How do you add or remove items from a combo box?
30.15 Why is the cell renderer for a combo box the same as the renderer for a list?
 


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