Java Code Examples for javax.swing.JSlider#removeMouseListener()
The following examples show how to use
javax.swing.JSlider#removeMouseListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlatSliderUI.java From FlatLaf with Apache License 2.0 | 5 votes |
@Override protected void uninstallListeners( JSlider slider ) { super.uninstallListeners( slider ); slider.removeMouseListener( hoverListener ); hoverListener = null; }
Example 2
Source File: WaveformSliderUI.java From pumpernickel with MIT License | 5 votes |
@Override protected void installListeners(JSlider slider) { super.installListeners(slider); slider.removeMouseListener(trackListener); slider.removeMouseMotionListener(trackListener); slider.addMouseListener(mouseListener); slider.addMouseMotionListener(mouseListener); slider.setForeground(Color.darkGray); }
Example 3
Source File: AngleSliderUI.java From pumpernickel with MIT License | 5 votes |
@Override public void uninstallUI(JComponent c) { JSlider slider = (JSlider) c; slider.removeFocusListener(focusListener); slider.removeMouseListener(mouseListener); slider.removeMouseMotionListener(mouseListener); RepaintChangeListener rcl = (RepaintChangeListener) slider .getClientProperty(REPAINT_CHANGE_LISTENER_KEY); slider.getModel().removeChangeListener(rcl); slider.removeKeyListener(keyListener); }
Example 4
Source File: ColorPickerSliderUI.java From pumpernickel with MIT License | 5 votes |
@Override protected void installListeners(JSlider slider) { super.installListeners(slider); slider.removeMouseListener(trackListener); slider.removeMouseMotionListener(trackListener); slider.addMouseListener(myMouseListener); slider.addMouseMotionListener(myMouseListener); slider.setOpaque(false); }
Example 5
Source File: SliderUI.java From rapidminer-studio with GNU Affero General Public License v3.0 | 5 votes |
@Override protected void uninstallListeners(JSlider slider) { if (this.thumbPressedListener != null) { slider.removeMouseListener(this.thumbPressedListener); this.thumbPressedListener = null; } super.uninstallListeners(slider); }
Example 6
Source File: ColorPickerSliderUI.java From PyramidShader with GNU General Public License v3.0 | 5 votes |
@Override protected void installListeners(JSlider slider) { super.installListeners(slider); slider.removeMouseListener(trackListener); slider.removeMouseMotionListener(trackListener); slider.addMouseListener(myMouseListener); slider.addMouseMotionListener(myMouseListener); slider.setOpaque(false); }
Example 7
Source File: WaveformSliderUI.java From pumpernickel with MIT License | 4 votes |
@Override protected void uninstallListeners(JSlider slider) { super.uninstallListeners(slider); slider.removeMouseListener(mouseListener); slider.removeMouseMotionListener(mouseListener); }
Example 8
Source File: ColorPickerSliderUI.java From pumpernickel with MIT License | 4 votes |
@Override protected void uninstallListeners(JSlider slider) { super.uninstallListeners(slider); slider.removeMouseListener(myMouseListener); slider.removeMouseMotionListener(myMouseListener); }
Example 9
Source File: ColorPickerSliderUI.java From PyramidShader with GNU General Public License v3.0 | 4 votes |
@Override protected void uninstallListeners(JSlider slider) { super.uninstallListeners(slider); slider.removeMouseListener(myMouseListener); slider.removeMouseMotionListener(myMouseListener); }