本文整理了Java中javax.swing.JComboBox.setNextFocusableComponent()
方法的一些代码示例,展示了JComboBox.setNextFocusableComponent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.setNextFocusableComponent()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!