本文整理了Java中javax.swing.JSlider.removeMouseListener()
方法的一些代码示例,展示了JSlider.removeMouseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSlider.removeMouseListener()
方法的具体详情如下:
包路径:javax.swing.JSlider
类名称:JSlider
方法名:removeMouseListener
暂无
代码示例来源:origin: lbalazscs/Pixelitor
@Override
protected void uninstallListeners(JSlider slider) {
super.uninstallListeners(slider);
slider.removeMouseListener(myMouseListener);
slider.removeMouseMotionListener(myMouseListener);
}
代码示例来源:origin: tulskiy/musique
@Override
public void run() {
for (MouseListener ml : progressSlider.getMouseListeners()) {
progressSlider.removeMouseListener(ml);
}
progressSlider.addMouseListener(progressMouseListener);
}
});
代码示例来源:origin: lbalazscs/Pixelitor
@Override
protected void installListeners(JSlider slider) {
super.installListeners(slider);
slider.removeMouseListener(trackListener);
slider.removeMouseMotionListener(trackListener);
slider.addMouseListener(myMouseListener);
slider.addMouseMotionListener(myMouseListener);
slider.setOpaque(false);
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void uninstallListeners(JSlider slider) {
super.uninstallListeners(slider);
slider.removeMouseListener(this.substanceRolloverListener);
slider.removeMouseMotionListener(this.substanceRolloverListener);
this.substanceRolloverListener = null;
slider
.removePropertyChangeListener(this.substancePropertyChangeListener);
this.substancePropertyChangeListener = null;
this.stateTransitionTracker.unregisterModelListeners();
this.stateTransitionTracker.unregisterFocusListeners();
}
代码示例来源:origin: org.java.net.substance/substance
@Override
protected void uninstallListeners(JSlider slider) {
super.uninstallListeners(slider);
slider.removeMouseListener(this.substanceRolloverListener);
slider.removeMouseMotionListener(this.substanceRolloverListener);
this.substanceRolloverListener = null;
slider
.removePropertyChangeListener(this.substancePropertyChangeListener);
this.substancePropertyChangeListener = null;
this.stateTransitionTracker.unregisterModelListeners();
this.stateTransitionTracker.unregisterFocusListeners();
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void uninstallListeners(JSlider slider) {
super.uninstallListeners(slider);
// fix for defect 109 - memory leak on changing skin
slider.removeMouseListener(this.substanceRolloverListener);
slider.removeMouseMotionListener(this.substanceRolloverListener);
this.substanceRolloverListener = null;
slider
.removePropertyChangeListener(this.substancePropertyChangeListener);
this.substancePropertyChangeListener = null;
this.stateTransitionTracker.unregisterModelListeners();
this.stateTransitionTracker.unregisterFocusListeners();
}
代码示例来源:origin: org.java.net.substance/substance
@Override
protected void uninstallListeners(JSlider slider) {
super.uninstallListeners(slider);
// fix for defect 109 - memory leak on changing skin
slider.removeMouseListener(this.substanceRolloverListener);
slider.removeMouseMotionListener(this.substanceRolloverListener);
this.substanceRolloverListener = null;
slider
.removePropertyChangeListener(this.substancePropertyChangeListener);
this.substancePropertyChangeListener = null;
this.stateTransitionTracker.unregisterModelListeners();
this.stateTransitionTracker.unregisterFocusListeners();
}
代码示例来源:origin: com.synaptix/SynaptixSwing
protected void uninstallListeners(JSlider slider) {
slider.removeMouseListener(trackListener);
slider.removeMouseMotionListener(trackListener);
slider.removeFocusListener(focusListener);
slider.removeComponentListener(componentListener);
slider.removePropertyChangeListener(propertyChangeListener);
slider.getModel().removeChangeListener(changeListener);
handler = null;
}
代码示例来源:origin: com.synaptix/SynaptixSwing
protected void uninstallListeners(JSlider slider) {
slider.removeMouseListener(trackListener);
slider.removeMouseMotionListener(trackListener);
slider.removeFocusListener(focusListener);
slider.removeComponentListener(componentListener);
slider.removePropertyChangeListener(propertyChangeListener);
slider.getModel().removeChangeListener(changeListener);
handler = null;
}
代码示例来源:origin: senbox-org/snap-desktop
MouseListener[] listeners = this.slider.getMouseListeners();
for (int i=0; i<listeners.length; i++) {
this.slider.removeMouseListener(listeners[i]);
内容来源于网络,如有侵权,请联系作者删除!