本文整理了Java中javax.swing.JTabbedPane.removeMouseListener()
方法的一些代码示例,展示了JTabbedPane.removeMouseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.removeMouseListener()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:removeMouseListener
暂无
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
@Override
public void uninstallListeners() {
if (this.baseRolloverHandler != null) {
this.jcomp.removeMouseMotionListener(this.baseRolloverHandler);
this.jcomp.removeMouseListener(this.baseRolloverHandler);
this.baseRolloverHandler = null;
}
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
public void disableReordering() {
tabPane.removeMouseListener(tabReorderingHandler);
tabPane.removeMouseMotionListener(tabReorderingHandler);
}
代码示例来源:origin: icza/scelight
@Override
public void actionPerformed( final ActionEvent event ) {
if ( beforeCloseTask != null )
beforeCloseTask.run();
// Component is removed from the hierarchy, remove bounded setting change listeners!
SettingsGui.removeAllBoundedScl( tab );
wrappedTabbedPane.remove( tab );
wrappedTabbedPane.removeMouseListener( middleClickCloseListener.value );
}
};
代码示例来源:origin: net.sf.nimrod/nimrod-laf
protected void uninstallListeners() {
super.uninstallListeners();
tabPane.removeMouseMotionListener( miml);
tabPane.removeMouseListener( miml);
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
@Override
public void uninstallListeners() {
this.jcomp.removeMouseWheelListener(this.mouseWheelListener);
this.mouseWheelListener = null;
this.jcomp.removeMouseListener(this.mouseListener);
this.mouseListener = null;
this.jcomp.removePropertyChangeListener(this.propertyChangeListener);
this.propertyChangeListener = null;
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void uninstallListeners() {
super.uninstallListeners();
tabPane.removeMouseListener(tabHandler);
tabPane.removeMouseMotionListener(tabHandler);
tabPane.removePropertyChangeListener(propHandler);
if (tabScrollHandler != null) {
tabPane.removeMouseWheelListener(tabScrollHandler);
}
if (tabSelectionHandler != null) {
tabPane.removeMouseListener(tabSelectionHandler);
}
disableReordering();
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
} else {
if (tabSelectionHandler != null) {
tabPane.removeMouseListener(tabSelectionHandler);
代码示例来源:origin: org.java.net.substance/substance
@Override
protected void uninstallListeners() {
super.uninstallListeners();
if (this.substanceRolloverHandler != null) {
this.tabPane
.removeMouseMotionListener(this.substanceRolloverHandler);
this.tabPane.removeMouseListener(this.substanceRolloverHandler);
this.substanceRolloverHandler = null;
}
if (this.substanceContainerListener != null) {
for (Map.Entry<Component, List<PropertyChangeListener>> entry : this.substanceContainerListener.listeners
.entrySet()) {
Component comp = entry.getKey();
// System.out.println(this.containerListener.hashCode() +"
// removing all for" + comp.hashCode());
for (PropertyChangeListener pcl : entry.getValue()) {
comp.removePropertyChangeListener(pcl);
}
}
this.substanceContainerListener.listeners.clear();
this.tabPane
.removeContainerListener(this.substanceContainerListener);
this.substanceContainerListener = null;
}
this.tabPane.getModel().removeChangeListener(
this.substanceSelectionListener);
this.substanceSelectionListener = null;
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void uninstallListeners() {
super.uninstallListeners();
if (this.substanceRolloverHandler != null) {
this.tabPane
.removeMouseMotionListener(this.substanceRolloverHandler);
this.tabPane.removeMouseListener(this.substanceRolloverHandler);
this.substanceRolloverHandler = null;
}
if (this.substanceContainerListener != null) {
for (Map.Entry<Component, List<PropertyChangeListener>> entry : this.substanceContainerListener.listeners
.entrySet()) {
Component comp = entry.getKey();
// System.out.println(this.containerListener.hashCode() +"
// removing all for" + comp.hashCode());
for (PropertyChangeListener pcl : entry.getValue()) {
comp.removePropertyChangeListener(pcl);
}
}
this.substanceContainerListener.listeners.clear();
this.tabPane
.removeContainerListener(this.substanceContainerListener);
this.substanceContainerListener = null;
}
this.tabPane.getModel().removeChangeListener(
this.substanceSelectionListener);
this.substanceSelectionListener = null;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
tabPane.removeMouseListener(mouseListener);
代码示例来源:origin: sc.fiji/TrakEM2_
tabs.removeMouseListener((tabs.getMouseListeners())[0]);
tabs = null;
代码示例来源:origin: com.jtattoo/JTattoo
} else {
tabPane.removeMouseListener(mouseListener);
代码示例来源:origin: girtel/Net2Plan
tabPane.removeMouseListener(mouseListener);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-callgraph
private void removePanel(JPanel panel) {
Component comp = getComponentCount() > 0 ? getComponent(0) : null;
if (comp instanceof JTabbedPane) {
JTabbedPane tabs = (JTabbedPane) comp;
if (panel == null) {
panel = (JPanel) tabs.getSelectedComponent();
}
tabs.remove(panel);
if (tabs.getComponentCount() == 1) {
Component c = tabs.getComponent(0);
tabs.removeMouseListener(listener);
tabs.removePropertyChangeListener(closeL);
remove(tabs);
add(c, BorderLayout.CENTER);
setName(((JPanel)c).getToolTipText());
}
} else if (comp instanceof CallGraphPanel) {
remove(comp);
add(jButton1, BorderLayout.CENTER);
setName(getMessage( "CTL_CallGraphTopComponent")); // NOI18N
close();
} else {
close();
}
validate();
}
代码示例来源:origin: antlr/antlrworks
toolbar.close();
bottomTab.removeMouseListener(ml);
bottomTab.removeChangeListener(cl);
内容来源于网络,如有侵权,请联系作者删除!