aspose file tools*
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
Author

Reset slide button???

Iliqna Ivanova
Greenhorn

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
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

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.
 
Consider Paul's rocket mass heater.
 
subject: Reset slide button???