Dynamically update slider value
Posted by anowlandafez on Jun 24, 2015; 12:45pm
URL: http://imagej.273.s1.nabble.com/Dynamically-update-slider-value-tp5013264.html
Hi,
I'm using a slider with values between 0-100 to change an images points of interest. However, each time I have to click 'ok' and wait for the product to be shown. I'd like to be able to slide the slider and for the image to change as I move the slider (I.E dynamically change the userValue).
GenericDialog gd = new GenericDialog("Choose value");
gd.addSlider("Value:", 1, 100, 0);
gd.showDialog();
Double userValue = gd.getNextNumber();
Any way to do this?
Thanks.