ptg7068951
Workshop 233
- What does a JSliderobject’s getValueIsAdjusting()method
accomplish?
A. It determines whether the slider has been changed from its origi-
nal value.
B. It determines whether the slider is currently being changed in
value.
C. Not a lot; this method is a major disappointment to its parent
superclass. - The Swing library was named after a style of dance band jazz that was
popularized in the 1930s and revived in the 1990s. Which of the follow-
ing is not a real title of a song performed by a Swing musician?
A. “Cement Mixer (Put-ti,Put-ti)”
B. “Sussudio”
C. “Flat Foot Floogie (with the Floy Floy)”
Answers
- C.PNG support in ImageIconwas added in Java 1.3.
- B.ThegetValueIsAdjusting()method returns truewhile the slider is
being moved and falseotherwise. - B.“Sussudio,” a hit song by Phil Collins in 1985,was five decades too
late for Swing. The other two songs are Swing hits by Slim Gaillard,
whose gift for gibberish also was evident in the songs “Boot-Ta-La-Za,”
“Ra-Da-Da-Da,” “Bingie-Bingie-Scootie,” and “Vout Oreenie.”
Activities
To s e e i f y o u h av e g o t t h e s w i n g o f t h i n g s ,try the following activities:
. Create a GUI that includes a combo box in a scroll pane.
. Add event-handling to the MailWriterapplication that displays the con-
tents of the to,subject, and messagecomponents using
System.out.println()when the Send button is clicked.
To s e e J av a p r o g r a m s t h a t i m p l e m e n t t h e s e a c t i v i t i e s ,visit the book’s website
at http://www.java24hours.com.