This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 5045

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!