|
Hi, i added a mouse listener to my program which is meant to adjust the volume.
Im using 2 JButtons and i have a JLabel witch displays the current volume setting, but inorder to change the value i need to repeadidly click the button to increment or decrement it.
I've done that using an ActionListener, now i implemented the MouseListener cause i want to be able to just hold the button and have it increment till i release it.
Im still in the learning phase of JAVA and this step isnt one of the requirments to my program but given to me as an extra step to keep me busy lol.
Well truth is i got my mouse listener working, i know this by using printlns to display messages as each mouse event happens, but i got no idea how to acomplish what im trying to do.
Ive searched and found many tutorials but none relate to what i want.
So if anyone can shed some light on how id do this, I thank you in advance.
__________________
<span style='font-family:Courier'><span style='font-size:12pt;line-height:100%'><span style='color:orange'>☼☼☼ Just kill em all, and let God sort em out. ☼☼☼</span></span></span>
|