本文整理了Java中javax.swing.JMenu.setFont()
方法的一些代码示例,展示了JMenu.setFont()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenu.setFont()
方法的具体详情如下:
包路径:javax.swing.JMenu
类名称:JMenu
方法名:setFont
暂无
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setFont(Font aFont) {
super.setFont(aFont);
}
代码示例来源:origin: Exslims/MercuryTrade
public JMenuItem getMenu(String text) {
JMenu menu = new JMenu(text);
menu.setFont(REGULAR_FONT.deriveFont(scale * 16f));
menu.setForeground(AppThemeColor.TEXT_DEFAULT);
return menu;
}
代码示例来源:origin: lycying/c2d-engine
mnAdd.setFont(new Font(mnAdd.getFont().getName(), Font.PLAIN, 24));
for (final b2FixtureDefModel m2 : data.fixtureDefModels) {
JMenuItem item = new JMenuItem(m2.name, new ImageIcon(this.getClass().getResource("/info/u250/c2d/box2deditor/ui/res/" + m2.getClass().getSimpleName() + ".png")));
代码示例来源:origin: atarw/material-ui-swing
@Override
public void installUI (JComponent c) {
super.installUI (c);
JMenu menu = (JMenu) c;
menu.setFont (UIManager.getFont ("Menu.font"));
menu.setBorder (UIManager.getBorder ("Menu.border"));
menu.setBackground (UIManager.getColor ("Menu.background"));
menu.setForeground (UIManager.getColor ("Menu.foreground"));
menu.setOpaque (UIManager.getBoolean ("Menu.opaque"));
}
代码示例来源:origin: org.biojava.thirdparty/forester
static JMenu createMenu( final String title, final Configuration conf ) {
final JMenu jmenu = new JMenu( title );
if ( !conf.isUseNativeUI() ) {
jmenu.setFont( MainFrame.menu_font );
jmenu.setBackground( conf.getGuiMenuBackgroundColor() );
jmenu.setForeground( conf.getGuiMenuTextColor() );
}
return jmenu;
}
代码示例来源:origin: otros-systems/otroslogviewer
autoResizeMenu.add(autoResizeAll);
JMenu removeMenu = new JMenu("Remove log events");
removeMenu.setFont(menuLabelFont);
removeMenu.setIcon(Icons.BIN);
JLabel removeLabel = new JLabel("Remove by:");
代码示例来源:origin: org.protege/protege-editor-core-application
private JComponent createOtherActions() {
Color fontColor = PropertyUtil.getColor(ProtegeProperties.getInstance().getProperty(ProtegeProperties.PROPERTY_COLOR_KEY),
Color.GRAY);
JPanel otherActionsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
otherActionsPanel.setBackground(Color.WHITE);
JMenuBar littleMenuBar = new JMenuBar();
// littleMenuBar.setBackground(Color.WHITE);
littleMenuBar.setOpaque(false);
final JMenu dropDownMenu = new JMenu("More actions");
dropDownMenu.setFont(getFont().deriveFont(Font.BOLD, 10.0f));
dropDownMenu.setForeground(fontColor);
dropDownMenu.setBackground(Color.WHITE);
littleMenuBar.add(dropDownMenu);
for (AltStartupActionPlugin plugin : new AltStartupActionPluginLoader(ProtegeWelcomeFrame.this).getPlugins()) {
try {
AbstractAction a = plugin.newInstance();
JMenuItem subMenu = new JMenuItem(a);
dropDownMenu.add(subMenu);
}
catch (Exception e) {
ProtegeApplication.getErrorLog().logError(e);
}
}
otherActionsPanel.add(littleMenuBar);
Box southBox = new Box(BoxLayout.Y_AXIS);
southBox.setBorder(BorderFactory.createEmptyBorder(0, 50, 0, 0));
southBox.add(otherActionsPanel);
return southBox;
}
代码示例来源:origin: net.sf.mmax2/mmax2
item.setFont(MMAX2.getStandardFont());
ButtonGroup group = new ButtonGroup();
JRadioButtonMenuItem temp = new JRadioButtonMenuItem("<none>");
代码示例来源:origin: tonikelope/megabasterd
file_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
edit_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
help_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
代码示例来源:origin: net.sf.mmax2/mmax2
oneClickAnnotationMenu.setFont(MMAX2.getStandardFont());
groupValuesMenu.setFont(MMAX2.getStandardFont());
JRadioButtonMenuItem item = new JRadioButtonMenuItem("Do not group values");
item.setSelected(true);
update.setFont(MMAX2.getStandardFont());
updatePanel = new JMenuItem("Update current panel");
updatePanel.setFont(MMAX2.getStandardFont());
settingsMenu.setFont(MMAX2.getStandardFont());
代码示例来源:origin: net.sf.mmax2/mmax2
clearButton.setFont(MMAX2.getStandardFont());
resultPane.setFont(MMAX2.getStandardFont());
settingsMenu.setFont(MMAX2.getStandardFont().deriveFont(8));
defaultQueryLevelMenu.setFont(MMAX2.getStandardFont().deriveFont(8));
optimizationMenu.setFont(MMAX2.getStandardFont().deriveFont(8));
lookaheadMenuItem.setFont(MMAX2.getStandardFont().deriveFont(8));
breakMenuItem.setFont(MMAX2.getStandardFont().deriveFont(8));
代码示例来源:origin: net.sf.mmax2/mmax2
item.setFont(MMAX2.getStandardFont());
String [] allNominals = _panel.getAllNominalMMAX2AttributeNames();
for (int z=0;z<allNominals.length;z++)
代码示例来源:origin: net.sf.mmax2/mmax2
tempMenu.setFont(MMAX2.getStandardFont());
for (int b=z;b<z+stepSize;b++)
tempMenu.setFont(MMAX2.getStandardFont());
for (int b=steps*stepSize;b<steps*stepSize+rest;b++)
代码示例来源:origin: net.sf.mmax2/mmax2
settingsMenu.setFont(MMAX2.getStandardFont());
fancy = new JCheckBoxMenuItem("Fancy labels");
fancy.setSelected(true);
styleSheets.setFont(MMAX2.getStandardFont());
settingsMenu.add(styleSheets);
setAllMenu.setFont(MMAX2.getStandardFont());
代码示例来源:origin: oskopek/javaanpr
menuBar.setFont(arial11);
imageMenu.setText("Image");
imageMenu.setFont(arial11);
openItem.setFont(arial11);
openItem.setText("Load snapshots");
menuBar.add(imageMenu);
helpMenu.setText("Help");
helpMenu.setFont(arial11);
aboutItem.setFont(arial11);
aboutItem.setText("About");
代码示例来源:origin: freeplane/freeplane
private JMenu getSubmenu( final IconGroup group) {
final JMenu menu = new JMenu("\u25ba") {
private static final long serialVersionUID = 1L;
@Override
protected Point getPopupMenuOrigin() {
return new Point(getWidth(), 0);
}
};
menu.setFont(ARROW_FONT);
menu.setMargin(ICON_SUBMENU_INSETS);
menu.setIcon(group.getGroupIcon().getIcon());
for (final MindIcon icon : group.getIcons()) {
addActionToIconSubmenu(menu, icon, icon.getFileName());
}
menu.setToolTipText(group.getDescription());
return menu;
}
代码示例来源:origin: net.sf.mmax2/mmax2
levelButtonGroup = new ButtonGroup();
levelMenu = new JMenu("Levels");
levelMenu.setFont(MMAX2.getStandardFont());
for (int z=0;z<availableLevels.length;z++)
sortOrdersMenu.setFont(MMAX2.getStandardFont());
JRadioButtonMenuItem alphaOrder = new JRadioButtonMenuItem("alpha");
alphaOrder.setFont(MMAX2.getStandardFont());
kwicFontMenu.setFont(MMAX2.getStandardFont());
otherKwicFont.setFont(MMAX2.getStandardFont());
JRadioButtonMenuItem temp = null;
代码示例来源:origin: monster860/FastDMM
menu.setFont(menu.getFont().deriveFont(Font.BOLD)); // Make it bold if is visible by the filter.
currPopup.add(menu);
代码示例来源:origin: net.sf.mmax2/mmax2
size = size + tempResult.length;
levelMenu = new JMenu(_discourse.getCurrentMarkableChart().getLevelNameByOrderPosition(p));
levelMenu.setFont(MMAX2.getMarkableSelectorFont());
this.add(levelMenu);
if (tempResult.length ==0) levelMenu.setEnabled(false);
代码示例来源:origin: net.sf.mmax2/mmax2
menu.setFont(currentSecondaryMarkable.getMarkableLevel().getCurrentDiscourse().getMMAX2().getStandardFont());
menu.setFont(currentSecondaryMarkable.getMarkableLevel().getCurrentDiscourse().getMMAX2().getStandardFont());
JMenuItem alphaItem = new JMenuItem("Alphabetic order");
alphaItem.setFont(currentSecondaryMarkable.getMarkableLevel().getCurrentDiscourse().getMMAX2().getStandardFont());
item = null;
JMenu copyMenu = new JMenu("Copy to clipboard");
copyMenu.setFont(currentMarkableChart.getCurrentDiscourse().getMMAX2().getStandardFont());
item = new JMenuItem("Markable text");
item.setFont(currentMarkableChart.getCurrentDiscourse().getMMAX2().getStandardFont());
内容来源于网络,如有侵权,请联系作者删除!