本文整理了Java中javax.swing.JTabbedPane.addMouseMotionListener()
方法的一些代码示例,展示了JTabbedPane.addMouseMotionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.addMouseMotionListener()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:addMouseMotionListener
暂无
代码示例来源:origin: org.bidib.jbidib.com.vldocking/vldocking
/** Constructs a new tabbedPane manager for a given JTabbedPane */
public JTabbedPaneSmartIconManager(JTabbedPane tabbedPane) {
this.tabbedPane = tabbedPane;
tabbedPane.addMouseListener(this);
tabbedPane.addMouseMotionListener(this);
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
public void enableReordering() {
if (tabReorderingHandler == null) {
tabReorderingHandler = new TabReorderHandler();
}
tabPane.addMouseListener(tabReorderingHandler);
tabPane.addMouseMotionListener(tabReorderingHandler);
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
@Override
public void installListeners() {
this.baseRolloverHandler = new MouseRolloverHandler();
this.jcomp.addMouseMotionListener(this.baseRolloverHandler);
this.jcomp.addMouseListener(this.baseRolloverHandler);
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
protected void installDefaults() {
super.installDefaults();
RollOverListener l = new RollOverListener();
tabPane.addMouseListener(l);
tabPane.addMouseMotionListener(l);
tabAreaInsets = NO_INSETS;
tabInsets = new Insets(0, 0, 0, 1);
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
protected void installDefaults() {
super.installDefaults();
RollOverListener l = new RollOverListener();
tabPane.addMouseListener(l);
tabPane.addMouseMotionListener(l);
tabAreaInsets = NO_INSETS;
tabInsets = new Insets(0, 0, 0, 1);
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
protected void installDefaults() {
super.installDefaults();
RollOverListener l = new RollOverListener();
tabPane.addMouseListener(l);
tabPane.addMouseMotionListener(l);
tabAreaInsets = NO_INSETS;
tabInsets = new Insets(0, 0, 0, 1);
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
protected void installDefaults() {
super.installDefaults();
RollOverListener l = new RollOverListener();
tabPane.addMouseListener(l);
tabPane.addMouseMotionListener(l);
tabAreaInsets = NO_INSETS;
tabInsets = new Insets(0, 0, 0, 1);
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
protected void installDefaults() {
super.installDefaults();
RollOverListener l = new RollOverListener();
tabPane.addMouseListener(l);
tabPane.addMouseMotionListener(l);
tabAreaInsets = NO_INSETS;
tabInsets = new Insets(0, 0, 0, 1);
}
代码示例来源:origin: net.sf.nimrod/nimrod-laf
protected void installListeners() {
super.installListeners();
miml = new MiML();
tabPane.addMouseMotionListener( miml);
tabPane.addMouseListener( miml);
}
代码示例来源:origin: de.richtercloud/flexdock-core
pane.addMouseMotionListener(tdl);
return pane;
代码示例来源:origin: khuxtable/seaglass
/**
* @see javax.swing.plaf.basic.BasicTabbedPaneUI#installListeners()
*/
protected void installListeners() {
super.installListeners();
tabPane.addMouseMotionListener((MouseAdapter) mouseListener);
tabPane.addPropertyChangeListener(this);
scrollBackwardButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
scrollBackward();
}
});
scrollForwardButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
scrollForward();
}
});
}
代码示例来源:origin: tulskiy/musique
tabbedPane.addMouseMotionListener(new MouseMotionListener() {
@Override
public void mouseDragged(MouseEvent e) {
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void installListeners() {
super.installListeners();
if (tabHandler == null) {
tabHandler = new TabRolloverHandler();
}
tabPane.addMouseListener(tabHandler);
tabPane.addMouseMotionListener(tabHandler);
if (propHandler == null) {
propHandler = new MyPropertyChangeHandler();
}
tabPane.addPropertyChangeListener(propHandler);
if (PlafOptions.isWheelTabbedPaneEnabled()) {
if (tabScrollHandler == null) {
tabScrollHandler = new TabbedPaneMouseWheelScroller();
}
tabPane.addMouseWheelListener(tabScrollHandler);
}
if (PlafOptions.isTabbedPaneRightClickSelectionEnabled()) {
if (tabSelectionHandler == null) {
tabSelectionHandler = new TabSelectionMouseHandler();
}
tabPane.addMouseListener(tabSelectionHandler);
}
if (PlafOptions.isTabReorderingEnabled()) {
enableReordering();
}
}
代码示例来源:origin: org.java.net.substance/substance
this.tabPane.addMouseMotionListener(this.substanceRolloverHandler);
this.tabPane.addMouseListener(this.substanceRolloverHandler);
代码示例来源:origin: com.github.insubstantial/substance
this.tabPane.addMouseMotionListener(this.substanceRolloverHandler);
this.tabPane.addMouseListener(this.substanceRolloverHandler);
代码示例来源:origin: com.jtattoo/JTattoo
tabPane.addMouseMotionListener(mouseMotionListener);
内容来源于网络,如有侵权,请联系作者删除!