javax.swing.JButton.removeMouseListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(198)

本文整理了Java中javax.swing.JButton.removeMouseListener()方法的一些代码示例,展示了JButton.removeMouseListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.removeMouseListener()方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:removeMouseListener

JButton.removeMouseListener介绍

暂无

代码示例

代码示例来源:origin: com.jidesoft/jide-oss

@Override
public void unconfigureArrowButton() {
  super.unconfigureArrowButton();
  arrowButton.removeMouseListener(_rolloverListener);
}

代码示例来源:origin: magefree/mage

this.btnConcede.removeMouseListener(ml);
this.btnSwitchHands.removeMouseListener(ml);
this.btnStopWatching.removeMouseListener(ml);

代码示例来源:origin: com.github.insubstantial/substance

@Override
protected void uninstallListeners() {
  // fix for defect 109 - memory leak on changing skin
  this.incrButton.removeMouseListener(this.substanceMouseListener);
  this.decrButton.removeMouseListener(this.substanceMouseListener);
  this.mySecondDecreaseButton
      .removeMouseListener(this.substanceMouseListener);
  this.mySecondIncreaseButton
      .removeMouseListener(this.substanceMouseListener);
  this.substanceMouseListener = null;
  this.scrollbar.removeMouseListener(this.substanceThumbRolloverListener);
  this.scrollbar
      .removeMouseMotionListener(this.substanceThumbRolloverListener);
  this.substanceThumbRolloverListener = null;
  this.scrollbar
      .removePropertyChangeListener(this.substancePropertyListener);
  this.substancePropertyListener = null;
  this.mySecondDecreaseButton.removeMouseListener(this.buttonListener);
  this.mySecondIncreaseButton.removeMouseListener(this.buttonListener);
  this.scrollbar
      .removeAdjustmentListener(this.substanceAdjustmentListener);
  this.substanceAdjustmentListener = null;
  super.uninstallListeners();
}

代码示例来源:origin: org.java.net.substance/substance

@Override
protected void uninstallListeners() {
  // fix for defect 109 - memory leak on changing skin
  this.incrButton.removeMouseListener(this.substanceMouseListener);
  this.decrButton.removeMouseListener(this.substanceMouseListener);
  this.mySecondDecreaseButton
      .removeMouseListener(this.substanceMouseListener);
  this.mySecondIncreaseButton
      .removeMouseListener(this.substanceMouseListener);
  this.substanceMouseListener = null;
  this.scrollbar.removeMouseListener(this.substanceThumbRolloverListener);
  this.scrollbar
      .removeMouseMotionListener(this.substanceThumbRolloverListener);
  this.substanceThumbRolloverListener = null;
  this.scrollbar
      .removePropertyChangeListener(this.substancePropertyListener);
  this.substancePropertyListener = null;
  this.mySecondDecreaseButton.removeMouseListener(this.buttonListener);
  this.mySecondIncreaseButton.removeMouseListener(this.buttonListener);
  this.scrollbar
      .removeAdjustmentListener(this.substanceAdjustmentListener);
  this.substanceAdjustmentListener = null;
  super.uninstallListeners();
}

代码示例来源:origin: xyz.cofe/gui.swing

protected JButton destroyButton(Action action) {
  if (!actions2buttonMap.containsKey(action))
    return null;
  JButton closeButton = actions2buttonMap.get(action);
  if (closeButton != null) {
    closeButton.removeMouseListener(closeButtonML);
    closeButton.removeMouseMotionListener(closeButtonML);
  }
  closeButton.setAction(null);
  actions2buttonMap.remove(action);
  if( closeButton!=null )button2actionMap.remove(closeButton);
  return closeButton;
}
// </editor-fold>

代码示例来源:origin: Exslims/MercuryTrade

@Override
  public void mousePressed(MouseEvent e) {
    if (SwingUtilities.isLeftMouseButton(e)) {
      button.setBackground(AppThemeColor.SLIDE_BG);
      button.setText("Press any key");
      allowed = true;
      button.removeMouseListener(this);
    }
  }
};

代码示例来源:origin: Exslims/MercuryTrade

@Override
  public void mousePressed(MouseEvent e) {
    if (SwingUtilities.isLeftMouseButton(e)) {
      button.setBackground(AppThemeColor.ADR_BG);
      button.setText("Press any key");
      hotKeyAllowed = true;
      button.removeMouseListener(this);
    }
  }
};

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

/**
 * This public method is implementation specific and should be private. Do
 * not call or override.
 */
public void unconfigureArrowButton()
{
  if (arrowButton != null)
  {
    arrowButton.removeMouseListener(popup.getMouseListener());
    arrowButton.removeMouseMotionListener(popup.getMouseMotionListener());
  }
}

代码示例来源:origin: freeplane/freeplane

if (selectedDay != null) {
  selectedDay.setBackground(oldDayBackgroundColor);
  selectedDay.removeMouseListener(this);
  selectedDay.setMultiClickThreshhold(0);
  selectedDay.repaint();

代码示例来源:origin: com.haulmont.thirdparty/glazedlists

this.arrowButton.removeMouseListener(arrowButtonMouseListener);
this.arrowButton.addMouseListener(arrowButtonMouseListener.getDecorated());

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16

this.arrowButton.removeMouseListener(arrowButtonMouseListener);
this.arrowButton.addMouseListener(arrowButtonMouseListener.getDecorated());

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15

this.arrowButton.removeMouseListener(arrowButtonMouseListener);
this.arrowButton.addMouseListener(arrowButtonMouseListener.getDecorated());

代码示例来源:origin: com.haulmont.thirdparty/glazedlists

this.arrowButton.removeMouseListener(popup.getMouseListener());
this.arrowButtonMouseListener = new ArrowButtonMouseListener(popup.getMouseListener());
this.arrowButton.addMouseListener(arrowButtonMouseListener);

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15

this.arrowButton.removeMouseListener(popup.getMouseListener());
this.arrowButtonMouseListener = new ArrowButtonMouseListener(popup.getMouseListener());
this.arrowButton.addMouseListener(arrowButtonMouseListener);

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16

this.arrowButton.removeMouseListener(popup.getMouseListener());
this.arrowButtonMouseListener = new ArrowButtonMouseListener(popup.getMouseListener());
this.arrowButton.addMouseListener(arrowButtonMouseListener);

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

popupButton.removeMouseListener(mouseListener);
popupButton.removeMouseMotionListener(mouseMotionListener);

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

popupButton.removeMouseListener(mouseListener);
popupButton.removeMouseMotionListener(mouseMotionListener);

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

popupButton.removeMouseListener(mouseListener);
popupButton.removeMouseMotionListener(mouseMotionListener);

代码示例来源:origin: org.swinglabs.swingx/swingx-core

popupButton.removeMouseListener(mouseListener);
popupButton.removeMouseMotionListener(mouseMotionListener);

代码示例来源:origin: org.swinglabs.swingx/swingx-all

popupButton.removeMouseListener(mouseListener);
popupButton.removeMouseMotionListener(mouseMotionListener);

相关文章

JButton类方法