List of usage examples for java.awt.event KeyAdapter subclass-usage
From source file MyKeyListener.java
class MyKeyListener extends KeyAdapter { public void keyTyped(KeyEvent evt) { JTextComponent c = (JTextComponent) evt.getSource(); char ch = evt.getKeyChar(); if (Character.isLowerCase(ch) == false) {
From source file Main.java
class MyKeyListener extends KeyAdapter { public void keyPressed(KeyEvent evt) { JComboBox cb = (JComboBox) evt.getSource(); int curIx = cb.getSelectedIndex();
From source file Main.java
class MyKeyListener extends KeyAdapter { public void keyPressed(KeyEvent evt) { JComboBox cb = (JComboBox) evt.getSource(); int curIx = cb.getSelectedIndex();
From source file Main.java
class MyKeyListener extends KeyAdapter { public void keyPressed(KeyEvent evt) { if (evt.getKeyChar() == 'a') { System.out.println("Check for key characters: " + evt.getKeyChar()); } if (evt.getKeyCode() == KeyEvent.VK_HOME) {
From source file Main.java
class MyKeyListener extends KeyAdapter { public void keyTyped(KeyEvent evt) { if (evt.getKeyChar() == 'a') { System.out.println("Check for key characters: " + evt.getKeyChar()); } if (evt.getKeyCode() == KeyEvent.VK_HOME) {
From source file Main.java
class MyKeyListener extends KeyAdapter { public void keyReleased(KeyEvent evt) { if (evt.getKeyChar() == 'a') { System.out.println("Check for key characters: " + evt.getKeyChar()); } if (evt.getKeyCode() == KeyEvent.VK_HOME) {
From source file pl.otros.logview.gui.actions.table.MarkRowBySpaceKeyListener.java
public class MarkRowBySpaceKeyListener extends KeyAdapter implements ConfigurationListener { private JTable table; private LogDataTableModel dataTableModel; private MarkerColors markerColors = MarkerColors.Aqua;
From source file net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.BaseKeyTextHandler.java
public class BaseKeyTextHandler extends KeyAdapter { /** * A flag to keep track of whether or not this is the first time we've seen * an empty text value or the first time since previously restoring the * value.
From source file net.sf.jabref.gui.AutoCompleteListener.java
/** * Created by Morten O. Alver, 16 Feb. 2007 */ public class AutoCompleteListener extends KeyAdapter implements FocusListener { //TODO: The logging behavior in this class is probably too fine-grained and only understandable to its original author
From source file net.sf.jabref.gui.autocompleter.AutoCompleteListener.java
/** * Created by Morten O. Alver, 16 Feb. 2007 */ public class AutoCompleteListener extends KeyAdapter implements FocusListener { //TODO: The logging behavior in this class is probably too fine-grained and only understandable to its original author