Quiz

No pane, no gain: Exercise some brain muscle by answering the following questions about scroll panes, image icons, and other Swing features.

Questions

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

  2. GIF and JPEG

  3. GIF, PNG, and JPEG

2:What does a JSlider object's getValueIsAdjusting() method accomplish?
  1. It determines whether the slider has been changed from its original value.

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

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

3:The Swing library was named after a style of dance band jazz that was popularized in the 1930s and unexpectedly revived in the 1990s. Which of the following is not a real title of a song performed by a Swing ...

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.