February 2014
Beginner
1248 pages
62h 25m
English
• A button is a component the user clicks to trigger an action. All the button types are subclasses of AbstractButton (p. 495; package javax.swing). Button labels (p. 495) typically use book-title capitalization (p. 495).
• Command buttons (p. 495) are created with class JButton.
• A JButton can display an Icon. A JButton can also have a rollover Icon (p. 497)—an Icon that’s displayed when the user positions the mouse over the button.
• Method setRolloverIcon (p. 498) of class AbstractButton specifies the image displayed on a button when the user positions the mouse over it.
Read now
Unlock full access