本文整理了Java中javax.swing.JTabbedPane.addMouseWheelListener()
方法的一些代码示例,展示了JTabbedPane.addMouseWheelListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.addMouseWheelListener()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:addMouseWheelListener
暂无
代码示例来源:origin: com.github.arnabk/pgslookandfeel
tabScrollHandler = new TabbedPaneMouseWheelScroller();
tabPane.addMouseWheelListener(tabScrollHandler);
} else {
if (tabScrollHandler != null) {
代码示例来源:origin: chatty/chatty
public Tabs() {
setLayout(new BorderLayout());
tabs.setOpaque(false);
tabs.addMouseWheelListener(new MouseWheelListener() {
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
@Override
public void installListeners() {
this.mouseWheelListener = new TabPagerMouseWheelListener(this.jcomp);
this.jcomp.addMouseWheelListener(this.mouseWheelListener);
this.mouseListener = new MouseAdapter() {
@Override
代码示例来源: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();
}
}
内容来源于网络,如有侵权,请联系作者删除!