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

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

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

JTabbedPane.setDisplayedMnemonicIndexAt介绍

暂无

代码示例

代码示例来源:origin: xyz.cofe/gui.swing

@Override
public void setDisplayedMnemonicIndexAt(int tabIndex, int mnemonicIndex) {
  Component cmpt = this.getTabComponentAt(tabIndex);
  if( cmpt instanceof TabQuery )((TabQuery)cmpt).setTabDisplayedMnemonicIndex(mnemonicIndex);
  super.setDisplayedMnemonicIndexAt(tabIndex, mnemonicIndex);
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing

@Override
  public void propertyChange(PropertyChangeEvent e) {
    String name = e.getPropertyName();
    if (name.equals(TabInfo.TITLE_PROPERTY)) {
      tabs.setTitleAt(tabIndex, (String) e.getNewValue());
    } else if (name.equals(TabInfo.TOOL_TIP_TEXT_PROPERTY)) {
      tabs.setToolTipTextAt(tabIndex, (String) e.getNewValue());
    } else if (name.equals(TabInfo.FOREGROUND_PROPERTY)) {
      tabs.setForegroundAt(tabIndex, (Color) e.getNewValue());
    } else if (name.equals(TabInfo.BACKGROUND_PROPERTY)) {
      tabs.setBackgroundAt(tabIndex, (Color) e.getNewValue());
    } else if (name.equals(TabInfo.MNEMONIC_PROPERTY)) {
      tabs.setMnemonicAt(tabIndex, (Integer) e.getNewValue());
    } else if (name.equals(TabInfo.DISPLAYED_MNEMONIC_INDEX_PROPERTY)) {
      tabs.setDisplayedMnemonicIndexAt(tabIndex, (Integer) e.getNewValue());
    } else if (name.equals(TabInfo.ICON_PROPERTY)) {
      tabs.setIconAt(tabIndex, (Icon) e.getNewValue());
    } else if (name.equals(TabInfo.DISABLED_ICON_PROPERTY)) {
      tabs.setDisabledIconAt(tabIndex, (Icon) e.getNewValue());
    }
  }
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime

@Override
  public void propertyChange(PropertyChangeEvent e) {
    String name = e.getPropertyName();
    if (name.equals(TabInfo.TITLE_PROPERTY)) {
      tabs.setTitleAt(tabIndex, (String) e.getNewValue());
    } else if (name.equals(TabInfo.TOOL_TIP_TEXT_PROPERTY)) {
      tabs.setToolTipTextAt(tabIndex, (String) e.getNewValue());
    } else if (name.equals(TabInfo.FOREGROUND_PROPERTY)) {
      tabs.setForegroundAt(tabIndex, (Color) e.getNewValue());
    } else if (name.equals(TabInfo.BACKGROUND_PROPERTY)) {
      tabs.setBackgroundAt(tabIndex, (Color) e.getNewValue());
    } else if (name.equals(TabInfo.MNEMONIC_PROPERTY)) {
      tabs.setMnemonicAt(tabIndex, (Integer) e.getNewValue());
    } else if (name.equals(TabInfo.DISPLAYED_MNEMONIC_INDEX_PROPERTY)) {
      tabs.setDisplayedMnemonicIndexAt(tabIndex, (Integer) e.getNewValue());
    } else if (name.equals(TabInfo.ICON_PROPERTY)) {
      tabs.setIconAt(tabIndex, (Icon) e.getNewValue());
    } else if (name.equals(TabInfo.DISABLED_ICON_PROPERTY)) {
      tabs.setDisabledIconAt(tabIndex, (Icon) e.getNewValue());
    } else if (name.equals(TabInfo.TAB_COMPONENT_PROPERTY)) {
      tabs.setTabComponentAt(tabIndex, (Component) e.getNewValue());
    } else if (name.equals(TabInfo.ENABLED_PROPERTY)) {
      tabs.setEnabledAt(tabIndex, (Boolean) e.getNewValue());
    }
  }
}

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime

@Override
  public void propertyChange(PropertyChangeEvent e) {
    String name = e.getPropertyName();
    if (name.equals(TabInfo.TITLE_PROPERTY)) {
      tabs.setTitleAt(tabIndex, (String) e.getNewValue());
    } else if (name.equals(TabInfo.TOOL_TIP_TEXT_PROPERTY)) {
      tabs.setToolTipTextAt(tabIndex, (String) e.getNewValue());
    } else if (name.equals(TabInfo.FOREGROUND_PROPERTY)) {
      tabs.setForegroundAt(tabIndex, (Color) e.getNewValue());
    } else if (name.equals(TabInfo.BACKGROUND_PROPERTY)) {
      tabs.setBackgroundAt(tabIndex, (Color) e.getNewValue());
    } else if (name.equals(TabInfo.MNEMONIC_PROPERTY)) {
      tabs.setMnemonicAt(tabIndex, (Integer) e.getNewValue());
    } else if (name.equals(TabInfo.DISPLAYED_MNEMONIC_INDEX_PROPERTY)) {
      tabs.setDisplayedMnemonicIndexAt(tabIndex, (Integer) e.getNewValue());
    } else if (name.equals(TabInfo.ICON_PROPERTY)) {
      tabs.setIconAt(tabIndex, (Icon) e.getNewValue());
    } else if (name.equals(TabInfo.DISABLED_ICON_PROPERTY)) {
      tabs.setDisabledIconAt(tabIndex, (Icon) e.getNewValue());
    } else if (name.equals(TabInfo.TAB_COMPONENT_PROPERTY)) {
      tabs.setTabComponentAt(tabIndex, (Component) e.getNewValue());
    } else if (name.equals(TabInfo.ENABLED_PROPERTY)) {
      tabs.setEnabledAt(tabIndex, (Boolean) e.getNewValue());
    }
  }
}

代码示例来源:origin: pentaho/pentaho-reporting

public void addColorChooserPanel( final AbstractColorChooserPanel panel ) {
 multiSelectorPane.addTab( panel.getDisplayName(), panel.getSmallDisplayIcon(), panel );
 multiSelectorPane.setMnemonicAt( multiSelectorPane.getTabCount() - 1, panel.getMnemonic() );
 multiSelectorPane
  .setDisplayedMnemonicIndexAt( multiSelectorPane.getTabCount() - 1, panel.getDisplayedMnemonicIndex() );
 panel.installChooserPanel( colorModel );
}

代码示例来源:origin: org.xworker/xworker_core

parent.setDisplayedMnemonicIndexAt(index, displayedMnemonicIndex);

相关文章

JTabbedPane类方法