本文整理了Java中javax.swing.JLabel.getMouseListeners()
方法的一些代码示例,展示了JLabel.getMouseListeners()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.getMouseListeners()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:getMouseListeners
暂无
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-component-fields
private void removeClickListeners(JLabel valueLabel) {
for (MouseListener ml : valueLabel.getMouseListeners()) {
valueLabel.removeMouseListener(ml);
}
}
代码示例来源:origin: huazhouwang/WIFIADB
private void cleanMouseListener(){
final MouseListener[] listeners = mActionIconLabel.getMouseListeners();
if (listeners != null){
for (MouseListener listener : listeners){
mActionIconLabel.removeMouseListener(listener);
}
}
}
}
代码示例来源:origin: Jamling/SmartIM
lblDetail.addMouseListener(lblSettings.getMouseListeners()[0]);
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!