Code example for JSlider

Methods: setMaximum

0
		public long getMaximum() { 
			return getActualValue(slider.getMaximum());
		} 
 
		public void setMaximum(long maximum) {
			slider.setMaximum(getScaledValue(maximum));
		} 
 
		public void setExtent(int extent) {
			slider.setExtent(Math.max(getScaledValue(extent) / extent, 1));
		} 
 
		public void setMajorTickSpacing(long n) {
			slider.setMajorTickSpacing(getScaledValue(n));
		} 
		 
		public void setPaintTicks (boolean b)
		{ 
			slider.setPaintTicks (b) ;
		} 
Connect your IDE to all the code out there  Get Codota for Java