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

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

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

JComboBox.addKeyListener介绍

暂无

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

displayResCombo.addKeyListener(aListener);
colorDepthCombo = new JComboBox();
colorDepthCombo.addKeyListener(aListener);
displayFreqCombo = new JComboBox();
displayFreqCombo.addKeyListener(aListener);
antialiasCombo = new JComboBox();
antialiasCombo.addKeyListener(aListener);
fullscreenBox = new JCheckBox(resourceBundle.getString("checkbox.fullscreen"));
fullscreenBox.setSelected(source.isFullscreen());

代码示例来源:origin: freeplane/freeplane

public NodeListWithReplacement(String windowTitle, boolean searchInAllMaps, String windowPreferenceStorageProperty) {
  super(windowTitle, searchInAllMaps, windowPreferenceStorageProperty);
  mFilterTextSearchField.addKeyListener(new KeyAdapter() {
    @Override
    public void keyPressed(final KeyEvent pEvent) {
      if (pEvent.getKeyCode() == KeyEvent.VK_DOWN) {
        mFilterTextReplaceField.requestFocusInWindow();
      }
    }
  });
  mFilterTextReplaceField = new JComboBoxWithBorder();
  mFilterTextReplaceField.setEditable(true);
  mFilterTextReplaceField.addKeyListener(new KeyAdapter() {
    @Override
    public void keyPressed(final KeyEvent pEvent) {
      if (pEvent.getKeyCode() == KeyEvent.VK_DOWN) {
        tableView.requestFocusInWindow();
      }
      else if (pEvent.getKeyCode() == KeyEvent.VK_UP) {
        mFilterTextSearchField.requestFocusInWindow();
      }
    }
  });
  useRegexInReplace = new JCheckBox(TextUtils.getText("regular_expressions"));
}
private static String replace(final Pattern p, String input, final String replacement) {

代码示例来源:origin: BaseXdb/basex

@Override
public synchronized void addKeyListener(final KeyListener l) {
 final BaseXTextField tf = textField();
 if(tf != null) tf.addKeyListener(l);
 else super.addKeyListener(l);
}

代码示例来源:origin: org.basex/basex

@Override
public synchronized void addKeyListener(final KeyListener l) {
 final BaseXTextField tf = textField();
 if(tf != null) tf.addKeyListener(l);
 else super.addKeyListener(l);
}

代码示例来源:origin: org.cytoscape/vizmap-gui-impl

combo.addKeyListener(new KeyAdapter() {
  public void keyPressed(KeyEvent e) {
    if (e.getKeyCode() == KeyEvent.VK_ENTER)

代码示例来源:origin: cytoscape/application

combo.addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent e) {
      if (e.getKeyCode() == KeyEvent.VK_ENTER)

代码示例来源:origin: in.jlibs/org-netbeans-swing-outline

searchCombo.addItemListener(scl);
searchCombo.addFocusListener(scl);
searchCombo.addKeyListener(scl);
searchPanel.add(searchCombo);
searchPanel.add (searchTextField);

代码示例来源:origin: pvto/konte-art

presets.addKeyListener(new java.awt.event.KeyAdapter()

代码示例来源:origin: semuxproject/semux-core

comboBox.addItem(opt);
comboBox.addKeyListener(new KeyAdapter() {
  @Override
  public void keyReleased(KeyEvent e) {

代码示例来源:origin: info.projectkyoto/mms-engine

displayResCombo.addKeyListener(aListener);
colorDepthCombo = new JComboBox();
colorDepthCombo.addKeyListener(aListener);
displayFreqCombo = new JComboBox();
displayFreqCombo.addKeyListener(aListener);
antialiasCombo = new JComboBox();
antialiasCombo.addKeyListener(aListener);
fullscreenBox = new JCheckBox("Fullscreen?");
fullscreenBox.setSelected(source.isFullscreen());

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop

displayResCombo.addKeyListener(aListener);
colorDepthCombo = new JComboBox();
colorDepthCombo.addKeyListener(aListener);
displayFreqCombo = new JComboBox();
displayFreqCombo.addKeyListener(aListener);
antialiasCombo = new JComboBox();
antialiasCombo.addKeyListener(aListener);
fullscreenBox = new JCheckBox(resourceBundle.getString("checkbox.fullscreen"));
fullscreenBox.setSelected(source.isFullscreen());

代码示例来源:origin: com.jidesoft/jide-oss

private void showMessage(String message) {
  hideMessage();
  _messagePopup = com.jidesoft.popup.JidePopupFactory.getSharedInstance().createPopup();
  JLabel label = new JLabel(message);
  label.setOpaque(true);
  label.setFont(UIDefaultsLookup.getFont("Label.font").deriveFont(Font.BOLD, 11));
  label.setBackground(new Color(253, 254, 226));
  label.setBorder(BorderFactory.createEmptyBorder(2, 6, 2, 6));
  label.setForeground(UIDefaultsLookup.getColor("ToolTip.foreground"));
  _messagePopup.getContentPane().setLayout(new BorderLayout());
  _messagePopup.getContentPane().add(label);
  if (_textField != null && _textField.isVisible()) {
    _messagePopup.setOwner(_textField);
  }
  if (_comboBox != null && _comboBox.isVisible()) {
    _messagePopup.setOwner(_comboBox);
  }
  _messagePopup.setDefaultMoveOperation(JidePopup.HIDE_ON_MOVED);
  _messagePopup.setTransient(true);
  _messagePopup.showPopup();
  addMouseMotionListener(_mouseMotionListener);
  if (_textField != null && _textField.isVisible()) {
    _textField.addKeyListener(_keyListener);
  }
  if (_comboBox != null && _comboBox.isVisible()) {
    _comboBox.addKeyListener(_keyListener);
  }
}

代码示例来源:origin: otros-systems/otroslogviewer

});
jList.addKeyListener(new KeyAdapter() {

代码示例来源:origin: com.googlecode.jannocessor/jannocessor-ui

combo.addKeyListener(keyListener);

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

methodBox.addKeyListener(this);
sessionsCouchBox.addKeyListener(this);
sessionsSQLiteBox.addKeyListener(this);

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

methodBox.addKeyListener(this);
sessionsSQLiteBox.addKeyListener(this);

代码示例来源:origin: org.codehaus.jtstand/jtstand-ui

jLabelTo.setLabelFor(toTime);
jSpinnerMaxResults.setVisible(false);
jComboBoxStation.addKeyListener(
    new KeyAdapter() {
jComboBoxFixture.addKeyListener(
    new KeyAdapter() {
jComboBoxPartNumber.addKeyListener(
    new KeyAdapter() {
jComboBoxPartRevision.addKeyListener(
    new KeyAdapter() {
jComboBoxTestType.addKeyListener(
    new KeyAdapter() {

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

comboBox.addKeyListener(keyListener);
comboBox.addKeyListener(popupKeyListener);

代码示例来源:origin: jasperreports/jasperreports

public void addComponentKeyListener(KeyListener listener)
{
  btnSave.addKeyListener(listener);
  btnPrint.addKeyListener(listener);
  btnReload.addKeyListener(listener);
  btnFirst.addKeyListener(listener);
  btnPrevious.addKeyListener(listener);
  btnNext.addKeyListener(listener);
  btnLast.addKeyListener(listener);
  txtGoTo.addKeyListener(listener);
  btnActualSize.addKeyListener(listener);
  btnFitPage.addKeyListener(listener);
  btnFitWidth.addKeyListener(listener);
  btnZoomIn.addKeyListener(listener);
  btnZoomOut.addKeyListener(listener);
  cmbZoom.addKeyListener(listener);
}

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

filterCombo.addKeyListener(new java.awt.event.KeyAdapter() {
  public void keyPressed(java.awt.event.KeyEvent evt) {
    filterComboKeyPressed(evt);

相关文章

JComboBox类方法