Examples of LCHColorPanel


Examples of de.mpi.rgblab.gui.palette.LCHColorPanel

    tcc = new JColorChooser();

    /**
     * Add lch color panel
     */
    LCHColorPanel hclColor = new LCHColorPanel();

    // hclColor.addFocusListener(new FocusListener(){
    // @Override
    // public void focusGained(FocusEvent e) {
    // System.out.println(e.getSource());
    // System.out.println("Focus gained");
    //           
    // }
    // @Override
    // public void focusLost(FocusEvent e) {
    // // TODO Auto-generated method stub
    // System.out.println("Focus lost");
    // }
    //         
    // });
    // tcc.addChooserPanel(hclColor);

    AbstractColorChooserPanel panels[] = { new LCHColorPanel(),
        new HCColorPanel() };
    tcc.setChooserPanels(panels);
    // tcc.getSelectionModel().addChangeListener(this);
    tcc.setBorder(BorderFactory.createTitledBorder("Choose Text Color"));
    // tcc.setPreviewPanel(pre);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.