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

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

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

JComboBox.setNextFocusableComponent介绍

暂无

代码示例

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15

/**
 * This method is called by Swing when installing this JComboBox as a
 * TableCellEditor. It ensures that focus will return to the JTable
 * when the cell edit is complete.
 *
 * <p>We override this method to ensure that if the JTextField acting
 * as the editor of the JComboBox has focus when the cell edit is
 * complete, focus is returned to the JTable in that case as well.
 */
@Override
public void setNextFocusableComponent(Component aComponent) {
  super.setNextFocusableComponent(aComponent);
  // set the next focusable component for the editor as well
  ((JComponent) getEditor().getEditorComponent()).setNextFocusableComponent(aComponent);
}

代码示例来源:origin: com.haulmont.thirdparty/glazedlists

/**
 * This method is called by Swing when installing this JComboBox as a
 * TableCellEditor. It ensures that focus will return to the JTable
 * when the cell edit is complete.
 *
 * <p>We override this method to ensure that if the JTextField acting
 * as the editor of the JComboBox has focus when the cell edit is
 * complete, focus is returned to the JTable in that case as well.
 */
@Override
public void setNextFocusableComponent(Component aComponent) {
  super.setNextFocusableComponent(aComponent);
  // set the next focusable component for the editor as well
  ((JComponent) getEditor().getEditorComponent()).setNextFocusableComponent(aComponent);
}

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16

/**
 * This method is called by Swing when installing this JComboBox as a
 * TableCellEditor. It ensures that focus will return to the JTable
 * when the cell edit is complete.
 *
 * <p>We override this method to ensure that if the JTextField acting
 * as the editor of the JComboBox has focus when the cell edit is
 * complete, focus is returned to the JTable in that case as well.
 */
@Override
public void setNextFocusableComponent(Component aComponent) {
  super.setNextFocusableComponent(aComponent);
  // set the next focusable component for the editor as well
  ((JComponent) getEditor().getEditorComponent()).setNextFocusableComponent(aComponent);
}

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

filterCombo.setNextFocusableComponent(contactJList);
filterCombo.addItemListener(new java.awt.event.ItemListener() {
  public void itemStateChanged(java.awt.event.ItemEvent evt) {

相关文章

JComboBox类方法