1.import javax.swing.*;
2.import java.awt.*;
3.class ColorChooserDialog{
4.ColorChooserDialog(){
5. JColorChooser colorChooser=new JColorChooser();
6. Color color=colorChooser.showDialog(null,"set Color",Color.red);
7. System.out.println(color);
8. }
9.public static void main(String[] args){
10. new ColorChooserDialog();
11. }
12.}
11. }
12.}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น