Java Reference
In-Depth Information
ANSWERS TO SELF-CHECK QUESTIONS
1. First add them to a panel, then add the panel to the north end of a frame.
2. Place them inside a panel with a GridLayout that has three rows and one
column.
3. If you have many options, a set of radio buttons takes up a large area. A
combo box can show many options without using up much space. But the
user cannot see the options as easily.
4. When any of the component settings is changed, the program simply
queries all of them and updates the label.
5. To keep it from growing too large. It would have grown to the same width
and height as the two panels below it.
6. When you open a menu, you have not yet made a selection. Only
JMenuItem objects correspond to selections.
7. The parameter variable is accessed in a method of an inner class.
8. JColorChooser .
9. Action events describe one-time changes, such as button clicks. Change
events describe continuous changes.
Search WWH ::




Custom Search