本文整理了Java中javax.swing.JMenuBar.setBackground()
方法的一些代码示例,展示了JMenuBar.setBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuBar.setBackground()
方法的具体详情如下:
包路径:javax.swing.JMenuBar
类名称:JMenuBar
方法名:setBackground
暂无
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setBackground(Color aValue) {
super.setBackground(aValue);
}
代码示例来源:origin: stackoverflow.com
JMenuBar bar = new JMenuBar();
bar.setBackground(Color.RED);
bar.setForeground(Color.BLUE);
代码示例来源:origin: atarw/material-ui-swing
@Override
public void installUI (JComponent c) {
super.installUI (c);
JMenuBar menuBar = (JMenuBar) c;
menuBar.setFont (UIManager.getFont ("MenuBar.font"));
menuBar.setBackground (UIManager.getColor ("MenuBar.background"));
menuBar.setBorder (UIManager.getBorder ("MenuBar.border"));
menuBar.setForeground (UIManager.getColor ("MenuBar.foreground"));
}
代码示例来源:origin: edu.illinois.lis/indri
mb.setBackground(lightYellow);
JMenu m = new JMenu("File");
m.setForeground(navyBlue);
代码示例来源:origin: songgeb/BDIndexSpider
menuBar.setBackground(Color.LIGHT_GRAY);
menuBar.setBounds(0, 0, 611, 22);
frame.getContentPane().add(menuBar);
代码示例来源:origin: edu.illinois.lis/indri
mb.setBackground(lightYellow);
JMenu m = new JMenu("File");
m.setForeground(navyBlue);
代码示例来源:origin: SimpleAmazonGlacierUploader/SAGU
mainPanel.add(copyrightPanel, BorderLayout.SOUTH);
menuBar.setBackground(WHITE);
menuBar.add(fileMenu);
fileMenu.setBackground(WHITE);
代码示例来源:origin: org.apache.directory/com.springsource.org.apache.directory.server.core
menuBar.setBackground( new java.awt.Color( 196, 197, 203 ) );
menuBar.add( backendMenu );
menuBar.add( searchMenu );
代码示例来源:origin: pvto/konte-art
menuBar.setBackground(new java.awt.Color(187, 203, 209));
代码示例来源:origin: org.apache.directory.server/apacheds-xdbm-tools
menuBar.setBackground( new java.awt.Color( 196, 197, 203 ) );
menuBar.add( backendMenu );
menuBar.add( searchMenu );
代码示例来源:origin: org.biojava.thirdparty/forester
_jmenubar.setBackground( getConfiguration().getGuiMenuBackgroundColor() );
代码示例来源:origin: org.biojava.thirdparty/forester
buildFileMenu();
if ( !getConfiguration().isUseNativeUI() ) {
_jmenubar.setBackground( getConfiguration().getGuiMenuBackgroundColor() );
代码示例来源:origin: org.biojava.thirdparty/forester
buildFileMenu();
if ( !_configuration.isUseNativeUI() ) {
_jmenubar.setBackground( _configuration.getGuiMenuBackgroundColor() );
代码示例来源:origin: khuxtable/seaglass
root.getJMenuBar().setBounds(x, menuInTitle ? 0 : nextY, w, mbd.height);
root.getJMenuBar().setOpaque(false);
root.getJMenuBar().setBackground(transparentColor);
if (!menuInTitle) {
nextY += mbd.height;
内容来源于网络,如有侵权,请联系作者删除!