Package javax.swing

Examples of javax.swing.JCheckBox.addActionListener()


      featureCheckBoxes.add(cb);
      cb.setBackground(c);
      cb.setToolTipText((String)featureDescriptions.elementAt(i));
     
            cb.setActionCommand("enableFeatExt"+i);
            cb.addActionListener(this);

            JFormattedTextField tf = new JFormattedTextField(NumberFormat.getNumberInstance());
            tf.setValue(new Double(1.0));
            tf.setColumns(2);
            tf.setBackground(c);
View Full Code Here


                avatarPanel.add(new JLabel(username), gridBagConstraints);
                final JCheckBox cb = new JCheckBox();
                gridBagConstraints = new java.awt.GridBagConstraints();
                gridBagConstraints.gridwidth = GridBagConstraints.REMAINDER;
                avatarPanel.add(cb, gridBagConstraints);
                cb.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        AvatarImiJME a = BoundsDebugger.getInstance().getAvatar(username);
                        if (a == null) {
                            System.err.println("Unknown username " + username);
                        }
View Full Code Here

    }

    /* Create CheckBox for choosing shown stats. */
    private void createCheckBox(String title, JPanel container) {
        JCheckBox checkBox = new JCheckBox(title, true);
        checkBox.addActionListener(new StatsTypeListener());
        container.add(checkBox);
    }

    private JButton createButton(String text, ActionListener listener) {
        JButton button = new JButton(text);
View Full Code Here

      final String longText = plugin.getDetailedDescription();
      if (longText != null) {
        checkbox.setToolTipText("<html>" + longText + "</html>");
      }
      checkbox.setSelected(isSelected(currentProject, plugin, userPlugin));
      checkbox.addActionListener(new ActionListener() {
        public void actionPerformed(final ActionEvent e) {
          if (checkbox.isSelected()) {
            if (userPlugin) {
              _preferences.addUserPlugin(pluginUrl, pluginId, true);
            } else {
View Full Code Here

      {
        editor = new TextKeyEditor(getConfig(), keyNames[i], displayName);
      }

      final JCheckBox enableCB = new JCheckBox();
      enableCB.addActionListener(new EnableAction(editor, enableCB));
      final JPanel panel = new JPanel();
      panel.setLayout(new BorderLayout());
      panel.add(enableCB, BorderLayout.WEST);
      panel.add(editor.getComponent(), BorderLayout.CENTER);
View Full Code Here

        {
            forceUpdate.setSelected(true);
            forceUpdate
                    .setText(Translater.getString("options.forceUpdateTrue"));
        }
        forceUpdate.addActionListener(new ActionListener() {
           
            public void actionPerformed(ActionEvent e)
            {
                if (!forceUpdate.isSelected())
                {
View Full Code Here

        {
            offlineModeToggle.setSelected(true);
            offlineModeToggle.setText(Translater
                    .getString("options.offlineMode"));
        }
        offlineModeToggle.addActionListener(new ActionListener() {
           
            public void actionPerformed(ActionEvent e)
            {
                if (offlineModeToggle.isSelected())
                {
View Full Code Here

        accessory.setLayout(new FlowLayout());
        accessory.add(showHiddenFileCheckBox);

        setAccessory(accessory);

        showHiddenFileCheckBox.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ae) {
                setFileHidingEnabled(!showHiddenFileCheckBox.isSelected());
            }
        });
View Full Code Here

                            menu.add(item);
                            menu.show(checkGlobal, e.getX(), e.getY());
                        }
                    }
                });
                checkGlobal.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        pluginEnabledStatus.get(plugin).global = checkGlobal.isSelected();
                    }
                });
View Full Code Here

        c.gridy = 4;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(createOrderButton, c);
       
        final JCheckBox checkBox = new JCheckBox("Debugging output");
        checkBox.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (checkBox.isSelected()) {
          addDebugRules();
        } else {
          removeDebugRules();
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.