The moose likes Swing / AWT / SWT and the fly likes Reset slide button??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Reset slide button???" Watch "Reset slide button???" New topic

Reset slide button???

Iliqna Ivanova

Joined: Jun 16, 2012
Posts: 2
Hello all,
I have a simple image-editing program where slide button change the contrast and brightness in buffered image. I would like when press a button to get the original image and the slilde knob to be set in the initial values. Does anyone that can help me?

Here is the slider:

And the button:

Thanks in advance!

Darryl Burke

Joined: May 03, 2008
Posts: 5090

Go through the JSlider API, looking for a method that allows you to set the value.

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: Reset slide button???
It's not a secret anymore!