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

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

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

JComboBox.getSelectedObjects介绍

暂无

代码示例

代码示例来源:origin: org.apache.jmeter/jorphan

public Object[] getSelectedItems() {
  return choiceList.getSelectedObjects();
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javafx2-project

public Object[] getSelectedObjects() {
  return combo.getSelectedObjects();
}

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

/**
   * Invoked when an action occurs on the combo box.
   * @param event Details about the action event.
   */
  public void actionPerformed (ActionEvent event)
  {
    Object source;
    Object[] selection;

    source = event.getSource ();
    if (source == mName)
    {
      selection = mName.getSelectedObjects ();
      if ((null != selection) && (0 != selection.length))
        mFilter.setName ((String)selection[0]);
    }
  }
}

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

protected String getPropertyName() {
  Object selectedItem = panel.getComboName().getSelectedObjects()[0];
  if (selectedItem == null) {
    return panel.getComboName().getEditor().getItem().toString().trim();
  } else {
    return selectedItem.toString().trim();
  }
}

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

selection = mLocale.getSelectedObjects ();
if ((null != selection) && (0 != selection.length))

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

if (source == mAttributeName)
  selection = mAttributeName.getSelectedObjects ();
  if ((null != selection) && (0 != selection.length))
    mFilter.setAttributeName ((String)selection[0]);

相关文章

JComboBox类方法