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

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

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

JTextPane.addPropertyChangeListener介绍

暂无

代码示例

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
public void addValueChangeListener(PropertyChangeListener listener) {
  super.addPropertyChangeListener(VALUE_PROP_NAME, listener);
}

代码示例来源:origin: stackoverflow.com

source.addPropertyChangeListener(new PropertyChangeListener() {
  @Override
  public void propertyChange(PropertyChangeEvent evt) {

代码示例来源:origin: chatty/chatty

textPane.addPropertyChangeListener("page", new PropertyChangeListener() {

代码示例来源:origin: omegat-org/omegat

public static void linkify(JTextPane jTextPane) {
  final MouseAdapter mouseAdapter = new AttributeInserterMouseListener(jTextPane);
  // Adding mouse listner for actions
  jTextPane.addMouseListener(mouseAdapter);
  // settings for mouseover (changing cursor)
  jTextPane.addMouseMotionListener(mouseAdapter);
  // Those are the main called points from user's activities.
  setDocumentFilter(jTextPane);
  jTextPane.addPropertyChangeListener("document", new PropertyChangeListener() {
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
      Object source = evt.getSource();
      if (source instanceof JTextPane) {
        setDocumentFilter((JTextPane) source);
      }
    }
  });
}

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

.addPropertyChangeListener(this.substancePropertyChangeListener);

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

.addPropertyChangeListener(this.substancePropertyChangeListener);

代码示例来源:origin: stackoverflow.com

textPane.addPropertyChangeListener("page", new PropertyChangeListener() {
  @Override
  public void propertyChange(PropertyChangeEvent event) {

相关文章

JTextPane类方法