keylistener
KeyListener not reacting
Im trying to use a KeyListener to do something when the button m is pressed, it needs to add an image to a JPanel, however it doesn\'t do anything :/[详细]
2023-02-22 05:45 分类:问答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 fo开发者_StackOverflow社区llows:[详细]
2023-02-22 00:09 分类:问答Need to have keyListener listening regardless of what focus is on Java
Im trying to make a hangman game. Im stuck on trying to listen for the keystroke. I want the user to be able to press a key and it will test to see if it is correct or not. I dont want to have to have[详细]
2023-02-21 20:34 分类:问答Why won't the keyPressed method be called?
I\'m making a fighting game in Java for a project and trying to get a picture to move and be repainted across the panel reacting to the keyboard (keyEvents).I\'m trying to accomplish this by having a[详细]
2023-02-18 14:27 分类:问答How can I figure out what part of a JTable is selected when Enter is pressed?
I have a JTable. 开发者_如何学PythonI want to know which row and column are selected when the user presses Enter. How can I get this information?Implmenent a TableModelListener. The TableModelEvent fr[详细]
2023-02-17 23:29 分类:问答How can I listen for key presses (within Java Swing) across all components?
I would like to listen for key combinat开发者_Go百科ions such as Control+S without adding key listeners to each component in my Swing application. How can I achieve this?It is possible.[详细]
2023-02-17 17:50 分类:问答Adding MouseListener breaks Keylistener
When I remove all of the MouseListener components and run the applet I have to click on it to give it focus, then the KeyListener works perfectly.To solve this I added an \"opening page\" where you ha[详细]
2023-02-16 02:37 分类:问答Java KeyListener keyPressed method fires too fast
If you use the java KeyListener class you know that if you hold down a key keyPr开发者_开发问答essed will fire one KeyEvent, and then about half a second later will fire the same key many times very v[详细]
2023-02-14 18:06 分类:问答keyPressed Listener produces strange behaviour
I have a series of Text- and Comboboxes along a jTable. I use the input from the boxes to filter the results of a JPQL-query, which are displayed on the jTable. Now, the idea was to automate the proce[详细]
2023-02-14 03:02 分类:问答JFrame/JDesktop not receving key focus
I would like my top level JFrame as well as the JDesktopPane to listen on key events at all times, no matter what component is currently focused/visible.[详细]
2023-02-13 06:54 分类:问答
加载中,请稍侯......