my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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: 4523

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.
It is sorta covered in the JavaRanch Style Guide.
subject: Reset slide button???
Similar Threads
slider problem
Adjustment brightness in an image by slider
JSlider issue
: A gray color box appeare d when loading an image on JPanel
simple slider question