How do I respond to a JButton being held down?
843806May 10 2008 — edited May 10 2008I want to make a JButton comparable to one of the JSpinner buttons. You hold it down with the moose button, a value increments, and if you hold it down for more than a second or so it starts incrementing automatically at a reasonable rate until you release the mouse button. But ActionListener only responds to a single click. MouseListener also only responds to singular events: mouseClicked(), MousePressed(), mouseReleased(), etc. None have a mouseHeldDown() method. Is there any way to do this (hopefully with threads) ??
Thanks.