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

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

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

JComboBox.unregisterKeyboardAction介绍

暂无

代码示例

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf

/**
 * Description of the Method
 */
protected void uninstallKeyboardActions() {
 super.uninstallKeyboardActions();
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0));
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke("KP_DOWN"));
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, InputEvent.ALT_MASK));
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke("alt KP_DOWN"));
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0));
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke("KP_UP"));
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_UP, InputEvent.ALT_MASK));
 comboBox.unregisterKeyboardAction(KeyStroke.getKeyStroke("alt KP_UP"));
}

代码示例来源:origin: net.sf.cuf/cuf-swing

mCriteria[i].unregisterKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));  // let the ENTER key trigger the default button
gbc.gridx = 1;
gbc.insets = insetsCombo;

相关文章

JComboBox类方法