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

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

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

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);

相关文章

JComboBox类方法