本文整理了Java中javax.swing.JComboBox.setRequestFocusEnabled()
方法的一些代码示例,展示了JComboBox.setRequestFocusEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.setRequestFocusEnabled()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称:JComboBox
方法名:setRequestFocusEnabled
暂无
代码示例来源:origin: tinyMediaManager/tinyMediaManager
@Override
public void installUI(JComponent c) {
super.installUI(c);
comboBox.setRequestFocusEnabled(true);
if (comboBox.getEditor() != null) {
if (comboBox.getEditor().getEditorComponent() instanceof JTextField) {
((JTextField) (comboBox.getEditor().getEditorComponent())).setBorder(BorderFactory.createEmptyBorder(0, 1, 0, 1));
}
}
}
代码示例来源:origin: com.jtattoo/JTattoo
public void installUI(JComponent c) {
super.installUI(c);
comboBox.setRequestFocusEnabled(true);
if (comboBox.getEditor() != null) {
if (comboBox.getEditor().getEditorComponent() instanceof JTextField) {
((JTextField) (comboBox.getEditor().getEditorComponent())).setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
comboBox.setRequestFocusEnabled(false);
addEditor();
comboBox.setRequestFocusEnabled(true);
removeEditor();
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
cbt.addItem(new Integer(i));
cbt.setRenderer(new XCR(cbt.getRenderer(),EAST));
cbt.setRequestFocusEnabled(false);
cbt.setMaximumRowCount(5);
cbt.addActionListener(this);
cet.addItem(new Integer(i));
cet.setRenderer(new XCR(cet.getRenderer(),WEST));
cet.setRequestFocusEnabled(false);
cet.setMaximumRowCount(5);
cet.addActionListener(this);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
comboBox.setRequestFocusEnabled(true);
内容来源于网络,如有侵权,请联系作者删除!