Package javax.swing.event

Examples of javax.swing.event.ChangeListener


      public TimestampOkJPanel() {

         /* set up the controls */
         // checkbox for Java default/non-default format
         useJavaDefaultFormatChk.setSelected(useJavaDefaultFormat);
         useJavaDefaultFormatChk.addChangeListener(new ChangeListener(){
            public void stateChanged(ChangeEvent e) {
               dateFormatTypeDrop.setEnabled( ! useJavaDefaultFormatChk.isSelected());
               dateFormatTypeDropLabel.setEnabled( ! useJavaDefaultFormatChk.isSelected());
               lenientChk.setEnabled( ! useJavaDefaultFormatChk.isSelected());
            }
View Full Code Here


    public BlobOkJPanel() {

      /* set up the controls */
      // checkbox for read/not-read on table load
      _showBlobChk.setSelected(_readBlobs);
      _showBlobChk.addChangeListener(new ChangeListener(){
        public void stateChanged(ChangeEvent e) {
        _blobTypeDrop.setEnabled(_showBlobChk.isSelected());
        _typeDropLabel.setEnabled(_showBlobChk.isSelected());
        _showBlobSizeField.setEnabled(_showBlobChk.isSelected() &&
          (_blobTypeDrop.getSelectedIndex()== 0));
View Full Code Here

       {

          /* set up the controls */
          // checkbox for Java default/non-default format
          useJavaDefaultFormatChk.setSelected(useJavaDefaultFormat);
          useJavaDefaultFormatChk.addChangeListener(new ChangeListener()
          {
             public void stateChanged(ChangeEvent e)
             {
                dateFormatTypeDrop.setEnabled(! useJavaDefaultFormatChk.isSelected());
                dateFormatTypeDropLabel.setEnabled(! useJavaDefaultFormatChk.isSelected());
View Full Code Here

   
    dateLaterRadionButton = new JRadioButton();
    dateModel = new SpinnerDateModel();
    final JSpinner dateSpinner = new JSpinner(dateModel);
    dateSpinner.setEnabled(false);
    dateLaterRadionButton.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent e) {
        dateSpinner.setEnabled(dateLaterRadionButton.isSelected());
      }     
    });
    builder.append("", dateLaterRadionButton, dateSpinner);
View Full Code Here

     {

       /* set up the controls */
       // checkbox for read/not-read on table load
       _showClobChk.setSelected(_readClobs);
       _showClobChk.addChangeListener(new ChangeListener()
       {
         public void stateChanged(ChangeEvent e)
         {
           _clobTypeDrop.setEnabled(_showClobChk.isSelected());
           _typeDropLabel.setEnabled(_showClobChk.isSelected());
View Full Code Here

      positionSlider.setOpaque(false);
      positionSlider.setValue(0);
      positionSlider.setMinimum(0);
      positionSlider.setMaximum(0);
      positionSlider.setEnabled(false);
      positionSlider.addChangeListener(new ChangeListener() {

        public void stateChanged(ChangeEvent e)
        {  // note: this gets called whether the user updates it, or whether it is updated automatically.
         
          if (suppressProgressChangeNotification)
View Full Code Here

      volumeSlider.setMaximum(100);
      volumeSlider.setValue(70);
      volumeSlider.setPreferredSize(new Dimension(100, 29));
      volumeSlider.setOpaque(false);
      volumeSlider.addChangeListener(
          new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
              if (!volumeSlider.getValueIsAdjusting()) {
                float newValue = (float) volumeSlider.getValue() / 100.0f;
                setGain(newValue);
              }
View Full Code Here

    pan = builder.getPanel();
    pan.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    add(pan, BorderLayout.CENTER);

    namesNatbib.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent changeEvent) {
        abbrNames.setEnabled(!namesNatbib.isSelected());
        lastNamesOnly.setEnabled(!namesNatbib.isSelected());
        noAbbrNames.setEnabled(!namesNatbib.isSelected());
      }
View Full Code Here

        inspectionWarnDupli.setMargin(marg);

       
        // We need a listener on useImportInspector to enable and disable the
        // import inspector related choices;
        useImportInspector.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent event) {
                useImportInspectorForSingle.setEnabled(useImportInspector.isSelected());
                inspectionWarnDupli.setEnabled(useImportInspector.isSelected());
            }
        });
View Full Code Here

    if (searchAll.isSelected()) {
        searchReq.setEnabled(false);
        searchOpt.setEnabled(false);
        searchGen.setEnabled(false);
    }
    searchAll.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent event) {
            boolean state = !searchAll.isSelected();
            searchReq.setEnabled(state);
            searchOpt.setEnabled(state);
            searchGen.setEnabled(state);
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.