use of processing.app.ui.ColorChooser in project processing by processing.
the class ColorSelector method run.
public void run() {
if (selector == null) {
synchronized (ColorSelector.class) {
if (selector == null) {
selector = new ColorChooser(base.getActiveEditor(), false, Color.WHITE, Language.text("menu.edit.copy"), new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Clipboard c = Toolkit.getSystemClipboard();
c.setContents(new StringSelection(selector.getHexColor()), null);
}
});
}
}
}
selector.show();
}
Aggregations