}
});
frame3.setVisible(true);
ChromaticityUCSJFrame frame4 = new ChromaticityUCSJFrame(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();
}
}
});
frame4.setVisible(true);
// Display light sources chromaticities
for(LightSource s : sources){
frame4.addChromaticityPoint(s.getx(), s.gety());
}
// Show Planckian Locus selector
PlanckianLocusJFrame planckFrame = new PlanckianLocusJFrame(new CiexyYColorSelectedListener() {