Code example for JSlider

Methods: addMouseListener

0
 
	@Override 
	protected void installListeners(JSlider slider) {
		super.installListeners(slider);
		if ((this.thumbPressedListener = createThumbPressedListener()) != null) {
			slider.addMouseListener(this.thumbPressedListener);
		} 
	} 
 
	@Override 
	protected void uninstallListeners(JSlider slider) {
		if (this.thumbPressedListener != null) {
			slider.removeMouseListener(this.thumbPressedListener);
			this.thumbPressedListener = null;
		} 
		super.uninstallListeners(slider);
	} 
 
	@Override 
	protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) {