本文整理了Java中javax.swing.JLabel.removeMouseMotionListener()
方法的一些代码示例,展示了JLabel.removeMouseMotionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.removeMouseMotionListener()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:removeMouseMotionListener
暂无
代码示例来源:origin: com.github.stephenc.monte/monte-screen-recorder
public void setLabel(JLabel newValue) {
if (label != null) {
label.removeMouseListener(handler);
label.removeMouseMotionListener(handler);
label.setCursor(Cursor.getDefaultCursor());
}
label = newValue;
if (label != null) {
label.addMouseListener(handler);
label.addMouseMotionListener(handler);
}
}
代码示例来源:origin: ru.sbtqa/monte-media
public void setLabel(JLabel newValue) {
if (label != null) {
label.removeMouseListener(handler);
label.removeMouseMotionListener(handler);
label.setCursor(getDefaultCursor());
}
label = newValue;
if (label != null) {
label.addMouseListener(handler);
label.addMouseMotionListener(handler);
}
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public void cleanup() {
if (flashingTimer != null)
flashingTimer.stop();
flashingTimer = null;
tab.removePropertyChangeListener(this);
removeMouseMotionListener(mouseEventDispatcher);
removeMouseListener(mouseEventDispatcher);
putClientProperty(ToolWindowTab.class, null);
titleLabel.removeMouseListener(dockedContainer.getTitleBarMouseAdapter());
titleLabel.removeMouseListener(mouseEventDispatcher);
titleLabel.removeMouseMotionListener(mouseEventDispatcher);
titleLabel.removeMouseListener(this);
if (selectedTab == tab)
selectedTab = null;
tab = null;
}
内容来源于网络,如有侵权,请联系作者删除!