javax.swing.JLabel.addPropertyChangeListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(236)

本文整理了Java中javax.swing.JLabel.addPropertyChangeListener()方法的一些代码示例,展示了JLabel.addPropertyChangeListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.addPropertyChangeListener()方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:addPropertyChangeListener

JLabel.addPropertyChangeListener介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-awt

public @Override void addPropertyChangeListener(PropertyChangeListener l) {
    if (swingRendering) {
      super.addPropertyChangeListener(l);
    }
  }
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

/** Overridden to do nothing for performance reasons, unless using standard swing rendering */
public @Override void addPropertyChangeListener(String s, PropertyChangeListener l) {
  if (swingRendering) {
    super.addPropertyChangeListener(s, l);
  }
}

代码示例来源:origin: org.netbeans.api/org-openide-dialogs

private void setProgressComponent (JComponent progressComp, final JLabel progressLabel) {
  assert SwingUtilities.isEventDispatchThread();
  if (progressComp == null) {
    progressBarPanel.removeAll ();
    progressBarPanel.setVisible (false);
  } else {
    if (progressLabel != null) {
      progressLabel.setText (PROGRESS_BAR_DISPLAY_NAME);
      progressLabel.addPropertyChangeListener ("text", new PropertyChangeListener () { // NOI18N
        @Override
        public void propertyChange (PropertyChangeEvent evt) {
          progressLabel.putClientProperty (JComponent.TOOL_TIP_TEXT_KEY, evt.getNewValue ().toString ());
        }
      });
      progressLabel.setToolTipText (PROGRESS_BAR_DISPLAY_NAME);
      progressBarPanel.add (progressLabel, BorderLayout.NORTH);
    }
    progressBarPanel.add (progressComp, BorderLayout.CENTER);
    progressBarPanel.setVisible (true);
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Overridden to do nothing for performance reasons, unless using standard swing rendering */
public void addPropertyChangeListener (String s, PropertyChangeListener l) {
  if (swingRendering) {
    super.addPropertyChangeListener (s, l);
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

public void addPropertyChangeListener (PropertyChangeListener l) {
    if (swingRendering) {
      super.addPropertyChangeListener (l);
    }
  }
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-about

@Override
public void applyDataBinding() {
  if (bottomLabel != null) {
    bottomLabel.addPropertyChangeListener("text", this);
  }
}

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-about

@Override
public void applyDataBinding() {
  if (bottomLabel != null) {
    bottomLabel.addPropertyChangeListener("text", this);
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Overridden to do nothing for performance reasons, unless using standard swing rendering */
public void addPropertyChangeListener (String s, PropertyChangeListener l) {
  if (swingRendering) {
    super.addPropertyChangeListener (s, l);
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public void addPropertyChangeListener (PropertyChangeListener l) {
    if (swingRendering) {
      super.addPropertyChangeListener (l);
    }
  }
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

public void applyDataBinding(String $binding) {
  if ("$JComponent0.font".equals($binding)) {
    if (new JLabel() != null) {
      new JLabel().addPropertyChangeListener("font", $DataSource4);
    }
  }
  processDataBinding($binding);
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
protected void installListeners(final JLabel c) {
  super.installListeners(c);
  this.substancePropertyChangeListener = new PropertyChangeListener() {
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
      if ("opaque".equals(evt.getPropertyName())) {
        if (!Boolean.TRUE.equals(c
            .getClientProperty(SubstanceButtonUI.LOCK_OPACITY))) {
          c.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL,
              evt.getNewValue());
          // System.out
          // .println("PCL: "
          // + b.getText()
          // + "->"
          // + b
          // .getClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL)
          // );
        }
      }
    }
  };
  c.addPropertyChangeListener(this.substancePropertyChangeListener);
}

代码示例来源:origin: org.java.net.substance/substance

@Override
protected void installListeners(final JLabel c) {
  super.installListeners(c);
  this.substancePropertyChangeListener = new PropertyChangeListener() {
    public void propertyChange(PropertyChangeEvent evt) {
      if ("opaque".equals(evt.getPropertyName())) {
        if (!Boolean.TRUE.equals(c
            .getClientProperty(SubstanceButtonUI.LOCK_OPACITY))) {
          c.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL,
              evt.getNewValue());
          // System.out
          // .println("PCL: "
          // + b.getText()
          // + "->"
          // + b
          // .getClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL)
          // );
        }
      }
    }
  };
  c.addPropertyChangeListener(this.substancePropertyChangeListener);
}

代码示例来源:origin: org.orbisgis/toc

/**
 * Get a {@code JLabel} for choosing the color.
 *
 * @param fill Legend
 * @return Label for choosing the color
 */
public JLabel getColorField(final ConstantSolidFill fill) {
  JLabel lblFill = getFilledLabel(fill.getColor());
  lblFill.addPropertyChangeListener(
      "background",
      EventHandler.create(
          PropertyChangeListener.class, fill, "color", "newValue"));
  lblFill.addPropertyChangeListener(
      "background",
      EventHandler.create(
          PropertyChangeListener.class, preview, "imageChanged"));
  return lblFill;
}

代码示例来源:origin: net.sf.taverna.t2.security/security-profiles

gbc_jcmbProtocol.gridy = 0;
final JLabel jlProtocolDescription = new JLabel("<html>Transfer protocol to use.</html>");
jlProtocolDescription.addPropertyChangeListener(new PropertyChangeListener(){
GridBagConstraints gbc_jlPortDescription = (GridBagConstraints) gbcCol2.clone();
gbc_jlPortDescription.gridy = 1;
jlPortDescription.addPropertyChangeListener(new PropertyChangeListener(){
GridBagConstraints gbc_jlAuthNTypeDescription = (GridBagConstraints) gbcCol2.clone();
gbc_jlAuthNTypeDescription.gridy = 2;
jlAuthNTypeDescription.addPropertyChangeListener(new PropertyChangeListener(){
GridBagConstraints gbc_jlRequireClientCertDescription = (GridBagConstraints) gbcCol2.clone();
gbc_jlRequireClientCertDescription.gridy = 3;
jlRequireClientCertDescription.addPropertyChangeListener(new PropertyChangeListener(){
GridBagConstraints gbc_jlProxyCertDepthDescription = (GridBagConstraints) gbcCol2.clone();
gbc_jlProxyCertDepthDescription.gridy = 4;
jlProxyCertDepthDescription.addPropertyChangeListener(new PropertyChangeListener(){
    "(If defined, the properties <br>below are not required)</html>");
jlWSSecPolicyURL.setFont(new Font(null, Font.PLAIN, 11));
jlWSSecPolicyURL.addPropertyChangeListener(new PropertyChangeListener(){
    "sent in plaintext or digest form.</html>");
jlPasswordTypeOutboundDescription.setFont(new Font(null, Font.PLAIN, 11));
jlPasswordTypeOutboundDescription.addPropertyChangeListener(new PropertyChangeListener(){
    "the request message will be referred to.</html>");

代码示例来源:origin: salaboy/jBPM5-Developer-Guide

averageRealTimejLabel.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
  public void propertyChange(java.beans.PropertyChangeEvent evt) {
    averageRealTimejLabelPropertyChange(evt);

相关文章

JLabel类方法