Package javax.swing.event

Examples of javax.swing.event.ChangeListener


        /*
         * The following state listener makes sure focus is registered with the
         * correct database when the user switches tabs. Without this,
         * cut/paste/copy operations would some times occur in the wrong tab.
         */
        tabbedPane.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                markActiveBasePanel();

                BasePanel bp = basePanel();
                if (bp != null) {
View Full Code Here


        severalDatabasesOnlyActions = new LinkedList<Object>();
        severalDatabasesOnlyActions.addAll(Arrays
            .asList(new Action[] { nextTab, prevTab, sortTabs }));

        tabbedPane.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent event) {
                updateEnabledState();
            }
        });
       
View Full Code Here

           
            cardPane.add(vbox,"d");
           
            add(cardPane);
           
            rbDynamic.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    ((CardLayout)cardPane.getLayout()).show(cardPane,rbDynamic.isSelected()?"d":"s");
                }
            });
           
View Full Code Here

        GridBagPanel mathExpression= new GridBagPanel();
        mathExpression.addOnCurrentRow(tfExpression = new JTextField(), 5, true, false, true);
        tabbedPane.add(mathExpression, resources.getString("mathExpression"));

        tabbedPane.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                switch(tabbedPane.getSelectedIndex()) {
                    case 0:
                        addExp.setText(resources.getString("addTemplate"));
                        break;
View Full Code Here

                if (svgPreview != null) {
                    svgPreview.clean();
                }
            }
        });
        rbResize.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                if (rbResize.isSelected()) {
                    if (currentFile != null) {
                        BufferedImage originalImage = SvgShape.factory.get(currentFile);
                        if (originalImage != null) {
View Full Code Here

    // setup radioboxes
    capacity_k_bit_s_radiobox.setText("KBit/s");
    capacity_k_byte_s_radiobox.setText("KByte/s");
    capacity_k_byte_s_radiobox.setSelected(true);
   
    capacity_k_bit_s_radiobox.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent event) {
        if(capacity_k_bit_s_radiobox.isSelected() && !already_marked_k_bit) {
          long down = Integer.parseInt(download_capacity_text_field.getText());
          long up = Integer.parseInt(upload_capacity_text_field.getText());
          download_capacity_text_field.setText((down*=8) + "");
          upload_capacity_text_field.setText((up*=8) + "");
          already_marked_k_bit = true;
          already_marked_k_byte = false;
        }
      }
    });
    capacity_k_byte_s_radiobox.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent event) {
        if(capacity_k_byte_s_radiobox.isSelected() && !already_marked_k_byte) {
          long down = Integer.parseInt(download_capacity_text_field.getText());
          long up = Integer.parseInt(upload_capacity_text_field.getText());
          download_capacity_text_field.setText((down/=8) + "");
View Full Code Here

            vbox.add(box);
            cardPane.add(vbox,"d");
           
            add(cardPane);
           
            rbDynamic.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    ((CardLayout)cardPane.getLayout()).show(cardPane,rbDynamic.isSelected()?"d":"s");                   
                }
            });
           
View Full Code Here

        descPanel.add(Box.createHorizontalGlue());
        options.add(descPanel);

        options.add(Box.createVerticalGlue());

        rbDoNothing.addChangeListener(new ChangeListener() {
          public void stateChanged(ChangeEvent e) {
            if (rbDoNothing.isSelected()) {
              currentAction.option = AutomatonAction.OPTION_DO_NOTHING;
              setActionProperties();
            }
          }
        });

        rbWrap.addChangeListener(new ChangeListener() {
          public void stateChanged(ChangeEvent e) {
            if (rbWrap.isSelected()) {
              currentAction.option = AutomatonAction.OPTION_WRAP;
              setActionProperties();
            }
          }
        });

        rbExtend.addChangeListener(new ChangeListener() {
          public void stateChanged(ChangeEvent e) {
            if (rbExtend.isSelected()) {
              currentAction.option = AutomatonAction.OPTION_EXTEND;
              setActionProperties();
            }
View Full Code Here

                        }
                    }
                }
            }
        });
        spithickness.addChangeListener((new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                if (e.getSource() == spithickness) {
                    strokeDisplay.getStrokeParams().setThickness(((Number) spithickness.getValue()).floatValue());
                    cbxdashes.repaint();
                }
View Full Code Here

                readText();
            }
            @Override
            public void focusGained(FocusEvent e) {
            }});
        _cb.addChangeListener(new ChangeListener(){

            @Override
            public void stateChanged(ChangeEvent e) {
                readCheckBox();
            }
View Full Code Here

TOP

Related Classes of javax.swing.event.ChangeListener

Copyright © 2018 www.massapicom. 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.