Long description

The first testing button window has 2 buttons: plain button and fancy button. The fancy button includes a thumbnail icon. The second testing button window has the same buttons with a computer mouse over the plain button. The message window reads as follows. You pressed, plain button. The third testing button window has a plain button and a fancy button. The mouse hovers over the fancy button. In the fourth testing button window, the fancy button is selected. The message window reads as follows. You pressed, fancy button.


 1   // Fig. I.7: ButtonTest.java
 2   // Testing ButtonFrame.
 3   import javax.swing.JFrame;
 4
 5   public class ButtonTest
 6   {
 7      public static void main( String[] args )
 8      {
 9         ButtonFrame buttonFrame = new ButtonFrame(); ...

Get Android How to Program, 3/e 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.