For Chapter 7
THIS PAGE CONTAINS A SAMPLE quiz on material from
Chapter 7 of this on-line
Java textbook. You should be able to answer these questions after
studying that chapter. Sample answers to all the quiz questions can
be found here.
What is the FontMetrics class used for?
An off-screen image can be used to do double buffering. Explain this.
(What are off-screen images? How are they used? Why are they important?
What does this have to do with animation?)
One of the main classes in Swing is the JComponent class.
What is meant by a component? What are some examples?
What is the function of a LayoutManager in Java?
What does it mean to use a null layout manager, and
why would you want to do so?
What is a JCheckBox and how is it used?
What is a thread
Explain how Timers are used to do animation.
Menus can contain sub-menus. What does this mean,
and how are sub-menus handled in Java?
What is the purpose of the JFrame class?