本文整理了Java中javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt()
方法的一些代码示例,展示了JTabbedPane.setDisplayedMnemonicIndexAt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.setDisplayedMnemonicIndexAt()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!