Package com.lightcrafts.ui.toolkit

Examples of com.lightcrafts.ui.toolkit.WidePopupComboBox.addItem()


            ColorProfileInfo.arrangeForMenu(Profiles);
        Set<String> names = new HashSet<String>();
        for (ColorProfileInfo info : profiles) {
            if (info != null) {
                String name = info.getName();
                combo.addItem(name);
                names.add(name);
            }
            else {
                combo.addItem(null);
            }
View Full Code Here


                String name = info.getName();
                combo.addItem(name);
                names.add(name);
            }
            else {
                combo.addItem(null);
            }
        }
        // Set the default color profile from the current options:
        ColorProfileOption defaultOption = options.colorProfile;
        String name = defaultOption.getValue();
View Full Code Here

        }
        // Set the default color profile from the current options:
        ColorProfileOption defaultOption = options.colorProfile;
        String name = defaultOption.getValue();
        if (! names.contains(name)) {
            combo.addItem(name);
        }
        combo.setSelectedItem(name);

        combo.addItemListener(
            new ItemListener() {
View Full Code Here

        WidePopupComboBox renderingIntent = new WidePopupComboBox();
        renderingIntent.setFocusable(false);

        RenderingIntent[] intents = RenderingIntent.getAll();
        for (RenderingIntent intent : intents) {
            renderingIntent.addItem(intent);
        }
        int code = options.renderingIntent.getValue();
        boolean bpc = options.blackPointCompensation.getValue();
        RenderingIntent intent = convertIntToRenderingIntent(code, bpc);
        renderingIntent.setSelectedItem(intent);
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.