public void actionPerformed(ActionEvent e) { processSearchText(((JTextField) e.getSource()).getText()); //Use the focus request to hide the field, otherwise focus will //be sent to Explorer or some random component BaseTable.this.requestFocus(); }
public void actionPerformed(ActionEvent e) { processSearchText(((JTextField) e.getSource()).getText()); //Use the focus request to hide the field, otherwise focus will //be sent to Explorer or some random component BaseTable.this.requestFocus(); }
public void actionPerformed(ActionEvent e) { processSearchText(((JTextField) e.getSource()).getText()); //Use the focus request to hide the field, otherwise focus will //be sent to Explorer or some random component BaseTable.this.requestFocus(); }
public void processKeyEvent(KeyEvent ke) { if (!isShowing()) { super.processKeyEvent(ke); return; } //override the default handling so that //the parent will never receive the escape key and //close a modal dialog if (ke.getKeyCode() == ke.VK_ESCAPE) { //The focus request will hide the field without focus getting //lost to somewhere else in the main window first. BaseTable.this.changeSelection (selectionBeforeLastShow, 0, false, false); BaseTable.this.requestFocus(); ke.consume(); } else if (ke.getKeyCode() == ke.VK_UP && ke.getID() == ke.KEY_PRESSED) { reverseSearch(getText()); } else if (ke.getKeyCode() == ke.VK_DOWN && ke.getID() == ke.KEY_PRESSED) { forwardSearch(getText()); } else { super.processKeyEvent(ke); if (ke.getKeyCode() != ke.VK_UP && ke.getKeyCode() != ke.VK_DOWN) { processSearchText(getText()); } } }
public void processKeyEvent(KeyEvent ke) { if (!isShowing()) { super.processKeyEvent(ke); return; } //override the default handling so that //the parent will never receive the escape key and //close a modal dialog if (ke.getKeyCode() == ke.VK_ESCAPE) { //The focus request will hide the field without focus getting //lost to somewhere else in the main window first. BaseTable.this.changeSelection (selectionBeforeLastShow, 0, false, false); BaseTable.this.requestFocus(); ke.consume(); } else if (ke.getKeyCode() == ke.VK_UP && ke.getID() == ke.KEY_PRESSED) { reverseSearch(getText()); } else if (ke.getKeyCode() == ke.VK_DOWN && ke.getID() == ke.KEY_PRESSED) { forwardSearch(getText()); } else { super.processKeyEvent(ke); if (ke.getKeyCode() != ke.VK_UP && ke.getKeyCode() != ke.VK_DOWN) { processSearchText(getText()); } } }
public void processKeyEvent(KeyEvent ke) { if (!isShowing()) { super.processKeyEvent(ke); return; } //override the default handling so that //the parent will never receive the escape key and //close a modal dialog if (ke.getKeyCode() == ke.VK_ESCAPE) { //The focus request will hide the field without focus getting //lost to somewhere else in the main window first. BaseTable.this.changeSelection(selectionBeforeLastShow, 0, false, false); BaseTable.this.requestFocus(); ke.consume(); } else if ((ke.getKeyCode() == ke.VK_UP) && (ke.getID() == ke.KEY_PRESSED)) { reverseSearch(getText()); } else if ((ke.getKeyCode() == ke.VK_DOWN) && (ke.getID() == ke.KEY_PRESSED)) { forwardSearch(getText()); } else { super.processKeyEvent(ke); if ((ke.getKeyCode() != ke.VK_UP) && (ke.getKeyCode() != ke.VK_DOWN)) { processSearchText(getText()); } } }
public void keyReleased(KeyEvent ke) { processSearchText(((JTextField) ke.getSource()).getText()); }
public void keyReleased(KeyEvent ke) { processSearchText(((JTextField) ke.getSource()).getText()); }
public void keyReleased(KeyEvent ke) { processSearchText(((JTextField) ke.getSource()).getText()); }
public void focusGained(FocusEvent e) { //it will be the first focus gained event, so go select //whatever matches the first character processSearchText(((JTextField) e.getSource()).getText()); repaint(); }
public void focusGained(FocusEvent e) { //it will be the first focus gained event, so go select //whatever matches the first character processSearchText(((JTextField) e.getSource()).getText()); JRootPane root = getRootPane(); if (root != null) { // #57417 NPE root.getLayeredPane().repaint(); } }
public void focusGained(FocusEvent e) { //it will be the first focus gained event, so go select //whatever matches the first character processSearchText(((JTextField) e.getSource()).getText()); repaint(); }