本文整理了Java中javax.swing.JLabel.removeMouseListener()
方法的一些代码示例,展示了JLabel.removeMouseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.removeMouseListener()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:removeMouseListener
暂无
代码示例来源:origin: magefree/mage
public static void RemoveMouseAdapter(JLabel label) {
label.removeMouseListener(currentMouseAdapter);
currentMouseAdapter = null;
}
代码示例来源:origin: stackoverflow.com
JLabel label = new JLabel("Label");
label.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(final MouseEvent e) {
super.mouseClicked(e);
label.setEnabled(false);
label.removeMouseListener(this);
}
});
代码示例来源:origin: huazhouwang/WIFIADB
private void cleanMouseListener(){
final MouseListener[] listeners = mActionIconLabel.getMouseListeners();
if (listeners != null){
for (MouseListener listener : listeners){
mActionIconLabel.removeMouseListener(listener);
}
}
}
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-component-fields
private void removeClickListeners(JLabel valueLabel) {
for (MouseListener ml : valueLabel.getMouseListeners()) {
valueLabel.removeMouseListener(ml);
}
}
代码示例来源: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;
}
代码示例来源: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: edu.toronto.cs.medsavant/medsavant-client
public void setTitleClickAction(MouseListener mouseListener) {
//downCaret.setVisible(true);
for (MouseListener l : titleLabel.getMouseListeners()) {
titleLabel.removeMouseListener(l);
//downCaret.removeMouseListener(l);
this.removeMouseListener(l);
}
titleLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));
//downCaret.setCursor(new Cursor(Cursor.HAND_CURSOR));
ViewUtil.adjustForegroundColorOnMouseover(titleLabel,-25);
titleLabel.addMouseListener(mouseListener);
this.addMouseListener(mouseListener);
}
}
代码示例来源:origin: GoldenGnu/jeveassets
private void setVisible(final boolean b) {
if (b) {
centerWindow();
} else { //Memory
for (UpdateTask task : updateTasks) {
for (MouseListener mouseListener : task.getTextLabel().getMouseListeners()) {
task.getTextLabel().removeMouseListener(mouseListener);
}
}
jWindow.removeWindowListener(listener);
jOK.removeActionListener(listener);
jCancel.removeActionListener(listener);
updateTask.removePropertyChangeListener(listener);
if (progress != null) {
program.getStatusPanel().removeProgress(progress);
}
}
jWindow.setVisible(b);
}
内容来源于网络,如有侵权,请联系作者删除!