Package javax.swing

Examples of javax.swing.JCheckBox.addActionListener()


            box1.add(lockSeriesCheck);

            if (coverage != null) {
                JCheckBox showCoverageCheck = new JCheckBox("Show Coverage", coverage.isInUse());
                showCoverageCheck.setActionCommand(showCoverageCommand);
                showCoverageCheck.addActionListener(this);
                box1.add(showCoverageCheck);
            }

            JButton setProperties = new JButton(i18n.get(RpfLayer.class,
                    "setProperties",
View Full Code Here


                JPanel dbp = new JPanel(new GridLayout(0, 1));

                JCheckBox declutterButton = new JCheckBox(i18n.get(LocationLayer.class,
                        "declutterNames",
                        "Declutter Names"), useDeclutterMatrix);
                declutterButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent ae) {
                        JCheckBox jcb = (JCheckBox) ae.getSource();
                        useDeclutterMatrix = jcb.isSelected();
                        if (isVisible()) {
                            doPrepare();
View Full Code Here

                if (DEBUG)
                    Debug.output("GeoIntersectLayer(" + getName()
                            + "): Adding shapes from " + shpFileName);

                JCheckBox visibilityControl = new JCheckBox("Show", true);
                visibilityControl.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent ae) {
                        setShapeListVisibilityForCheckbox();
                        repaint();
                    }
                });
View Full Code Here

        panel.setLayout(gridbag);

        JCheckBox setZonesButton = new JCheckBox(i18n.get(UTMGridPlugIn.class,
                "setZonesButton",
                "Show UTM Zone Grid"), showZones);
        setZonesButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                JCheckBox button = (JCheckBox) ae.getSource();
                showZones = button.isSelected();
                doPrepare();
            }
View Full Code Here

        panel.add(setZonesButton);

        JCheckBox set100kGridButton = new JCheckBox(i18n.get(UTMGridPlugIn.class,
                "set100kGridButton",
                "Show 100Km Distance Grid"), show100kGrid);
        set100kGridButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                JCheckBox button = (JCheckBox) ae.getSource();
                show100kGrid = button.isSelected();
                doPrepare();
            }
View Full Code Here

        panel.add(set100kGridButton);

        JCheckBox setLabelsButton = new JCheckBox(i18n.get(UTMGridPlugIn.class,
                "setLabelsButton",
                "Show Zone Labels"), showLabels);
        setLabelsButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                JCheckBox button = (JCheckBox) ae.getSource();
                showLabels = button.isSelected();
                doPrepare();
            }
View Full Code Here

        Box box2 = Box.createVerticalBox();
        JPanel topbox = new JPanel();

        showMapsCheck = new JCheckBox("Show Images", viewAttributes.showMaps);
        showMapsCheck.setActionCommand(showMapsCommand);
        showMapsCheck.addActionListener(this);

        showInfoCheck = new JCheckBox("Show Attributes", viewAttributes.showInfo);
        showInfoCheck.setActionCommand(showInfoCommand);
        showInfoCheck.addActionListener(this);
View Full Code Here

        box1.add(lockSeriesCheck);

        if (coverage != null) {
            JCheckBox showCoverageCheck = new JCheckBox("Show Coverage Tool", false);
            showCoverageCheck.setActionCommand(showCoverageCommand);
            showCoverageCheck.addActionListener(this);
            box1.add(showCoverageCheck);
        }

        topbox.add(box1);
        topbox.add(box2);
View Full Code Here

            c.setCellEditor(new DefaultCellEditor(textName));
            c.setHeaderValue(DcResources.getText("lblCustomLabel"));

            c = table.getColumnModel().getColumn(_COL_ENABLED);
            JCheckBox checkEnabled = new JCheckBox();
            checkEnabled.addActionListener(this);
            checkEnabled.setActionCommand("checkDependencies");
            c.setCellEditor(new DefaultCellEditor(checkEnabled));
            c.setCellRenderer(CheckBoxTableCellRenderer.getInstance());
            c.setHeaderValue(DcResources.getText("lblEnabled"));
View Full Code Here

            c.setCellRenderer(CheckBoxTableCellRenderer.getInstance());
            c.setHeaderValue(DcResources.getText("lblEnabled"));

            c = table.getColumnModel().getColumn(_COL_REQUIRED);
            JCheckBox checkRequired = new JCheckBox();
            checkRequired.addActionListener(this);
            checkRequired.setActionCommand("checkDependencies");
            c.setCellEditor(new DefaultCellEditor(checkRequired));
            c.setCellRenderer(CheckBoxTableCellRenderer.getInstance());
            c.setHeaderValue(DcResources.getText("lblRequired"));
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.