javax.swing.JTabbedPane.addMouseWheelListener()方法的使用及代码示例

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

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

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();
  }
}

相关文章

JTabbedPane类方法