Professional Documents
Culture Documents
PROJECT REPORT
ON
Certificate
Certified that this project report is based on our original
work. Information drawn from other books/journals, World
Wide Web (Internet) and the support of the college has
been duly acknowledged.
Acknowledgement
I am grateful to all those people who extended their
support and completion of my project.
Project title:
Project category :
Core java
Language and software tool used :
Hardware requirement :
Operating system: Window 7
Hard disks: 40GB
RAM: 256 MB
Software requirement :
Java language
Net beans IDE 7.0.1(optional)
JDk
JRE
Souce Code
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
public class JColorChooserExample
extends JFrame implements
ActionListener{
JButton b;
Container c;
JColorChooserExample(){
c=getContentPane();
c.setLayout(new FlowLayout());
b=new JButton("color");
b.addActionListener(this);
c.add(b);
}
public void
actionPerformed(ActionEvent e) {
Color initialcolor=Color.RED;
Color
color=JColorChooser.showDialog(thi
s,"Select a color",initialcolor);
c.setBackground(color);
}
ch.setDefaultCloseOperation(EXIT_
ON_CLOSE);
}
}
Screenshots
Colorchooser Execution in dos
Window OF the colorchooser
First Panel In color Chooser Swatches
Second panel of the colorchooser RGB
Last panel of the HSB