Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Nov 25th, 2004, 2:43 PM   #1
T3FLoN
Newbie
 
Join Date: Nov 2004
Posts: 21
Rep Power: 0 T3FLoN is on a distinguished road
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>
T3FLoN is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:26 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC