Arrow « JTextField « Java Swing Q&A





1. How to add a listener to a JTextField for up, down left, right arrow?    stackoverflow.com

I need to write an arrow listener for my JTextField. if a try with:

public void keyTyped(KeyEvent e) {
   if (e.getKeyCode() == KeyEvent.VK_DOWN) {
    ......
   ...

2. JTextFields Are Not Working On New Computer, Arrow Key and BackSpace Fail :(    coderanch.com

Has anyone come across this problem? I am now running an x64 version of Solaris 10 on my new machine with an Opteron x64 processor, but my Swing Apps are acting funny even after I recompile. Not all of the keys on my key board work in the JTextFields. The arrow keys, the Backspace key and the Zero (number pad) key ...

3. JTextField with arrow listener(up&down).    coderanch.com

Hello, I took a look at your example. I am still having hard to fitting the JSpinner into this part of the code. What am I missing? The shown example is how the complete look should look like, every part is done except the JSpinner. Thanks. //Four Buttons. JButton jb4=new JButton("Save"); JButton jb5=new JButton("Delete"); JButton jb6=new JButton("Save Edit"); JButton jb7=new JButton("Find"); ...