package swimg;
import java
import java
import java
import javax
import javax
import javax
import javax
import javax
import javax
public class ColorChooserDemo extends JPanel{
protected JColorChooser tcc;
protected JLabel banner;
public ColorChooserDemo(){
super(new BorderLayout());
JPanel bannerPanel=new JPanel(new BorderLayout());
bannerPanel
tcc=new JColorChooser(Color
add(bannerPanel
add(tcc
}
public static void main(String[] args) {
JFrame frame=new JFrame(
frame
frame
frame
JComponent newContentPane=new ColorChooserDemo();
newContentPane
frame
frame
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26378.html