JColorChooser's preview panel will not go away.
In my app i just tried adding a jcolorchooser but cant get the preview panel to go away, so i wrote this code that shows exactly what im doing. This code works, but the preview panel is still there.
publicclass Colorextends javax.swing.JFrameimplements java.awt.event.ActionListener
{
private javax.swing.JColorChooser _c;
private javax.swing.JButton a;
public Color()
{
_c =new javax.swing.JColorChooser();
_c.setPreviewPanel(new javax.swing.JPanel());
a =new javax.swing.JButton("change bg");
a.addActionListener(this);
this.add(a);
this.setVisible(true);
this.setSize(300, 300);
this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
}
publicvoid actionPerformed(java.awt.event.ActionEvent e)
{ a.setBackground(_c.showDialog(null,"colors", this.getBackground()));}
publicstaticvoid main(String[] args)
{new Color();}
}

