javax.swing.JComboBox.fireItemStateChanged()方法的使用及代码示例

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

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

JComboBox.fireItemStateChanged介绍

暂无

代码示例

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

@Override
protected void fireItemStateChanged(ItemEvent e) {
  super.fireItemStateChanged(e);
}

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

@Override
protected void fireItemStateChanged(ItemEvent e) {
  super.fireItemStateChanged(e);
}

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

@Override
protected void fireItemStateChanged(ItemEvent e) {
  super.fireItemStateChanged(e);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-profiler-attach

protected void fireItemStateChanged(ItemEvent event) {
    super.fireItemStateChanged(event);
    if (event.getStateChange() != ItemEvent.SELECTED) return;
    updateSteps();
  }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui

protected void fireItemStateChanged(ItemEvent e) {
  switch (e.getStateChange()) {
    case ItemEvent.SELECTED:
      if (e.getItem() instanceof JSeparator) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              selectNextItem();
            }
          });
      }
      break;
    case ItemEvent.DESELECTED:
      if (!(e.getItem() instanceof JSeparator)) {
        lastSelectedIndex = model.getIndexOf(e.getItem());
      }
      break;
  }
  super.fireItemStateChanged(e);
}

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

isFired = true;
setSelectedItem(obj);
fireItemStateChanged(new ItemEvent(this, 701, selectedItemReminder, 1));
isFired = false;
return;

相关文章

JComboBox类方法