Top "Keylistener" questions

A KeyListener is an implementation of the Observer pattern which is created specifically for handling keyboard events.

Java Editable JCombobox Keylistener event for Enter key

I have editable JCombobox and I added keylistener for combobox editor component. When user press 'Enter key' and if there …

java swing jcombobox keylistener enter
keylistener not working after clicking button

I have a keylistener attached to my frame in java, i can detect key presses when I hit any key, …

java swing keylistener
Event listener in Java without app having focus? (Global keypress detection)

I've been searching for a while and everybody seems to think this is not possible using just Java, so I'll …

java java-native-interface listener keylistener
Java JTextArea KeyListener

When I pressed the ENTER my JTextArea starts a new row and I only want do to the doClick() method …

java swing listener jlabel keylistener
Catching key pressed with the virtual keyboard in Android?

With the physical keyboard you can catch key presses with a KeyListener, something like: myEditText.setOnKeyListener(new OnKeyListener() { @Override public …

android android-edittext keylistener
Edit Text key listener

I have an edittext and a button in my layout and in my code I'm setting keyListener of the edittext …

android android-edittext keylistener
Android: KeyListener for an EditText not receiving keys

I have an EditText that I want to monitor KeyEvents for, and I have a listener set up as follows: …

android android-edittext keylistener
KeyListener in Java is abstract; cannot be instantiated?

I am trying to create a Key Listener in java however when I try KeyListener listener = new KeyListener(); Netbeans is …

java instantiation keylistener
Why can't I access my panel's getWidth() and getHeight() functions?

I'm writing a simple program to test out basic GUI. The program prints a letter in the middle of the …

java swing jpanel keylistener graphics2d
Creating Snake using Java

I decided to re-create Snake using Java, but I'm sort of stuck. At the moment, I have a square that …

java swing user-interface keylistener