public void mousePressed(MouseEvent e) {
if(e == null) {
setColor(key, component.getBackground());
} else {
XJColorChooser cc = new XJColorChooser(component.getParent(), true, component);
if(cc.runModal() == XJDialog.BUTTON_OK) {
setColor(key, cc.getColor());
}
}
}