Code example for Scrollbar

Methods: getValue

0
		close(); 
		Prefs.saveLocation(LOC_KEY, getLocation());
	} 
 
	public void adjustmentValueChanged(AdjustmentEvent e) {
		if (e.getSource().equals(slider)) {
			rotateTo(slider.getValue() * Math.PI / 180);
			updateTextbox(); 
		} 
	} 
 
	public void itemStateChanged(ItemEvent e) {
		Object source = e.getSource();
		if (source.equals(axis0Choice)) {
			int i = axis0Choice.getSelectedIndex();
			if (i == axis1Choice.getSelectedIndex()) {
				axis0Choice.select(axis0);
				IJ.error("Both axes cannot indicate the same direction"); 
				return; 
			} 
Contextual code suggestions in your IDE  Get Codota for Java