Sams Teach Yourself Java™ in 24 Hours (Covering Java 7 and Android)

(singke) #1
ptg7068951

232 HOUR 16:Building a Complex User Interface


Q&A
Q. How can I find out about the rest of the Swing classes in the Java
class library?
A. On Oracle’s official Java site,the full documentation for the Java class
library is published at http://download.oracle.com/javase/7/docs/api.
Yo u c a n s e e t h e c l a s s e s t h a t a r e i n c l u d e d i n javax.swing,java.awt,
andjava.awt.event, the packages that are covered during the preced-
ing four hours. All Swing classes and interfaces are documented,
including their constructors,class variables,and instance variables.

Q. Why is a videogame about a barrel-tossing,princess-kidnapping ape
and an Italian plumber called Donkey Kong?
A. Donkey Kong was named by Shigeru Miyamoto,who created the game
for Nintendo as a coin-operated arcade game in 1981. Miyamoto was
under the mistaken impression that the word “donkey” meant “stupid”
in English,but by the time Nintendo’s American division learned of it
the name had stuck.
Miyamoto’s gorilla/princess/plumber love triangle was inspired by
Nintendo’s failed attempt to license Popeyefor a videogame. Later
videogames established that the original Donkey Kong has become
Cranky Kong,an elderly bad-tempered ape who believes that an exces-
sive amount of processing power is devoted to current games com-
pared to his 8-bit heyday.

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

Quiz



  1. What graphics file formats are supported by the ImageIconclass?
    A. GIF
    B. GIF and JPEG
    C. GIF,PNG,and JPEG

Free download pdf