Java Detect Mouse Movement
Scanner is usually used to easily grab user input from the console. This is not used for mouse/key inputs. If using Swing, you could add a KeyListener and MouseListener to your panel, which will trigger event methods containing code that you write.
26.2k 71 71 gold badges 186 186 silver badges 309 309 bronze badges Swing was designed to use Key Bindings, not KeyListeners. – camickr Aug 15 '11 at 23:39 add a comment |
Post a Comment:
Showing 0 Comments: