File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Controlling volume using JSlider" Watch "Controlling volume using JSlider" New topic

Controlling volume using JSlider

Rajasree R

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

Thanks in advance
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

Joined: May 23, 2005
Posts: 12
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.
I agree. Here's the link:
subject: Controlling volume using JSlider
It's not a secret anymore!