Code example for JSlider

Methods: removeMouseListener

0
	} 
 
	@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) {
		if (this.slider.isEnabled()) {
			g.setColor((Color) UIManager.get("Slider.minorColor"));
		} else { 
			g.setColor((Color) UIManager.get("Slider.minorDisabledColor"));
		} 
		g.drawLine(x, 0, x, tickBounds.height / 2 - 1);
	}