Owl Teach Yourself Java in 24 Hours, Fifth Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS HOUR / NEXT HOUR / THANKS
ROGERS CADENHEAD

Hour 16: Building a Complex User Interface

Online Interactive Learning Lab

How to create the Tool application.

Hour 16 Quiz

Question 1. What graphics file formats are supported by the ImageIcon class?

1.a. GIF

1.b. GIF and JPEG

1.c. GIF, PNG and JPEG

PNG is upported with other Java classes that involve images, but graphics in this format aren't supported by ImageIcon.

Question 2. What does a JSlider object's getValueIsAdjusting() method accomplish?

2.a. It determines whether the slider has been changed from its original value

2.b. It determines whether the slider is currently being changed in value

2.c. Not a lot; this method is a major disappointment to its parent superclass

The getValueIsAdjusting() method returns true while the slider is being moved and false otherwise.

Question 3. 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 following is not a real title of a song performed by a Swing musician?

3.a. "Cement Mixer (Put-ti, Put-ti)"

3.b. "Sussudio"

3.c. "Flat Foot Floogie (with the Floy Floy)"

"Sussudio," a hit song by Phil Collins in 1985, was five decades too late for Swing. The other 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," "Bing-Bingie-Scootie," and "Vout Oreenie.".

Notes and Corrections

  • None.

Source Files

Reader Questions

  • None.

Activities

   
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS HOUR / NEXT HOUR / THANKS

Search terms used to find this page: Java programming, teach yourself, 24 hours, how to, learn, Sams, Macmillan, Java2, JDK1.5, Java 1.5, JDK 1.5, SDK1.5, Java 2 SDK 1.5, SDK 1.5, Java 2 version 1.5, J2SE 1.5, J2SE 5, Java 2 Standard Edition 1.5, Java 2 Standard Edition 5, Java 2 SDK, Java SDK, Rogers Cadenhead, tutorial, hands-on, source code, code, javac, java, appletviewer, help, learning, applet, application, Java Plug-in, plugin, Swing, GUI, interface, Java2D, IO, Java Web Start, games, novice, beginner, neophyte, rookie

Valid HTML 4.01!

Valid CSS!