this.add(button,BorderLayout.CENTER);
button.addMouseListener(new java.awt.event.MouseAdapter()
{
public void mousePressed(java.awt.event.MouseEvent evt)
{
CustomColorPicker frm = new CustomColorPicker(null,true);
frm.modus=getRef().modus;
frm.p1=getRef().p1;
frm.p2=getRef().p2;
frm.color1=getRef().color1;
frm.color2=getRef().color2;
frm.color1Transparency=getRef().color1Transparency;
frm.color2Transparency=getRef().color2Transparency;
frm.wiederholung=getRef().wiederholung;
frm.init();
frm.setVisible(true);
if (frm.result)
{
setValue(frm.modus,frm.p1,frm.p2, frm.color1, frm.color2, frm.color1Transparency, frm.color2Transparency, frm.wiederholung);
}
//Color bgColor = JColorChooser.showDialog(getFrame(),java.util.ResourceBundle.getBundle("Peditor/PropertyEditor").getString("Choose Background Color"),getColor());