本文整理了Java中javax.swing.JPanel.removeMouseMotionListener()
方法的一些代码示例,展示了JPanel.removeMouseMotionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.removeMouseMotionListener()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:removeMouseMotionListener
暂无
代码示例来源:origin: hsz/idea-gitignore
/** Disposes all outer editors stored in {@link #outerEditors}. */
@Override
public void dispose() {
northPanel.removeMouseListener(this);
northPanel.removeMouseMotionListener(this);
tabbedPanel.removeChangeListener(this);
if (messageBus != null) {
messageBus.disconnect();
messageBus = null;
}
for (Editor outerEditor : outerEditors) {
EditorFactory.getInstance().releaseEditor(outerEditor);
}
}
}
代码示例来源:origin: akquinet/jbosscc-as7-examples
/**
* Implements method for the <tt>MouseListener</tt> interface to complete
* shape dragging.
*
* @param evt
* The associated mouse event.
**/
public void mouseReleased(MouseEvent evt) {
if (m_selectedComponent != null) {
m_panel.removeMouseMotionListener(this);
m_panel.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
m_selectedComponent.setBounds(evt.getX() - BOX / 2, evt.getY()
- BOX / 2, BOX, BOX);
m_selectedComponent.repaint();
m_selectedComponent = null;
}
}
代码示例来源:origin: org.softsmithy.lib/lib-core
/**
* Sets the state manager.
* @param manager the state manager
*/
protected void setStateManager(StateManager manager){
if (stateManager != null){
glassPane.removeMouseListener(stateManager);
glassPane.removeMouseMotionListener(stateManager);
removeFocusListener(stateManager);
stateManager.unconfigureCustomizer();
}
stateManager = manager;
glassPane.addMouseListener(stateManager);
glassPane.addMouseMotionListener(stateManager);
addFocusListener(stateManager);
stateManager.configureCustomizer();
}
内容来源于网络,如有侵权,请联系作者删除!