This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Controlling volume using JSlider Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Controlling volume using JSlider" Watch "Controlling volume using JSlider" New topic
Author

Controlling volume using JSlider

Rajasree R
Greenhorn

Joined: May 23, 2005
Posts: 12
Hi,
How can I use control the volume using a JSlider?

Thanks in advance
Rajasree
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
add a changeListener to the slider, and in stateChanged() set the volume
according to the slider value
Rajasree R
Greenhorn

Joined: May 23, 2005
Posts: 12
Hi
Thx for the reply.But what I dnt know is how to set /adjust the volume.I know how to use the slider.Sorry,my question was not clear.
Thanks
Rajasree
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Controlling volume using JSlider