• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reset slide button???  RSS feed

 
Iliqna Ivanova
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go through the JSlider API, looking for a method that allows you to set the value.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!