19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

39.2<br />

How do you do implement models, views, and controllers?<br />

39.3<br />

What are the variations of MVC architecture?<br />

Section 39.4<br />

39.4<br />

Does each Swing GUI <strong>com</strong>ponent (except containers such as JPanel) have a<br />

property named model? Is the type of model the same for all the<br />

<strong>com</strong>ponents?<br />

39.5<br />

Does each model interface have a default implementation class? If so,<br />

does a Swing <strong>com</strong>ponent use the default model class if no model is<br />

specified?<br />

Sections 39.5-39.6<br />

39.6<br />

If you create a JSpinner without specifying a data model, what is the<br />

default model?<br />

39.7<br />

What is the internal data structure for s<strong>to</strong>ring data in<br />

SpinnerListModel? How do you convert an array <strong>to</strong> a list?<br />

Sections 39.7-39.9<br />

39.8<br />

Does JList have a method, such as addItem, for adding an item <strong>to</strong> a<br />

list? How do you add items <strong>to</strong> a list? Can JList display icons and<br />

cus<strong>to</strong>m GUI objects in a list? Can a list item be edited? How do you<br />

initialize data in a list? How do you specify the maximum number of<br />

visible rows in a list without scrolling? How do you specify the height<br />

of a list cell? How do you specify the horizontal margin of list cells?<br />

39.9 How do you create a list model? How do you add items <strong>to</strong> a list<br />

model? How do you remove items from a list model?<br />

39.10 What are the three list-selection modes? Can you set the<br />

selection modes directly in an instance of JList? How do you obtain the<br />

selected item(s)?<br />

39.11 How do you define a cus<strong>to</strong>m list cell renderer?<br />

39.12 What is the handler for handling the ListSelectionEvent?<br />

Section 39.10<br />

39.13 Can multiple items be selected from a <strong>com</strong>bo box? Can a <strong>com</strong>bo box<br />

item be edited? How do you specify the maximum number of visible rows<br />

in a <strong>com</strong>bo box without scrolling? Can you specify the height of a <strong>com</strong>bo<br />

box cell using a method in JComboBox? How do you obtain the selected<br />

item in a <strong>com</strong>bo box?<br />

39.14 How do you add or remove items from a <strong>com</strong>bo box?<br />

40

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!