Java GUI Sample Classes

Instruction:
Copy and Compile all these 8 sample classes. Then answer the given
Machine Problem1
1 // Fig. 12.6: ShowColors2.java
2 // Choosing colors with JColorChooser.
3 import java.awt.*;
4 import java.awt.event.*;
5 import javax.swing.*;
6
7 public class ShowColors2 extends JFrame {
8 private JButton changeColorButton;
9 private Color color = Color.LIGHT_GRAY;
10 private Container container;
11
12 // set up GUI13 public ShowColors2()
learn more>>

Post a Comment

0 Comments