frame4.addChromaticityPoint(s.getx(), s.gety());
}
// Show Planckian Locus selector
PlanckianLocusJFrame planckFrame = new PlanckianLocusJFrame(new CiexyYColorSelectedListener() {
@Override
public void onCiexyYColorSelected(double x, double y, double Y) {
try {
// Set the color I clicked
setColor(new AbsoluteColor(new Chromaticity(x, y), Y));
} catch (IOException e) {
e.printStackTrace();
}
}
});
planckFrame.setVisible(true);
}