javax.swing.JMenuBar.setBorder()方法的使用及代码示例

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

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

JMenuBar.setBorder介绍

暂无

代码示例

代码示例来源:origin: ron190/jsql-injection

panelLineBottom.setBorder(null);
panelLineBottom.setPreferredSize(new Dimension(0, 26));
panelLineBottom.setBorder(
  BorderFactory.createCompoundBorder(
    BorderFactory.createMatteBorder(0, 1, 0, 0, HelperUi.COLOR_COMPONENT_BORDER),

代码示例来源:origin: com.jtattoo/JTattoo

public void installUI(JComponent c) {
  super.installUI(c);
  if ((c != null) && (c instanceof JMenuBar)) {
    ((JMenuBar) c).setBorder(McWinBorders.getMenuBarBorder());
    ((JMenuBar) c).setBorderPainted(true);
  }
}

代码示例来源:origin: com.jtattoo/JTattoo

public void installUI(JComponent c) {
  super.installUI(c);
  if ((c != null) && (c instanceof JMenuBar)) {
    ((JMenuBar) c).setBorder(TextureBorders.getMenuBarBorder());
    ((JMenuBar) c).setBorderPainted(true);
  }
}

代码示例来源:origin: ron190/jsql-injection

menuBarVendor.setBorder(null);

代码示例来源:origin: com.jtattoo/JTattoo

public void installUI(JComponent c) {
  super.installUI(c);
  if ((c != null) && (c instanceof JMenuBar)) {
    ((JMenuBar) c).setBorder(BernsteinBorders.getMenuBarBorder());
    ((JMenuBar) c).setBorderPainted(true);
  }
}

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

/**
 * Creates and returns a <code>JMenuBar</code>
 */
public static JMenuBar createMenuBar() {
  JMenuBar menuBar = new JMenuBar();
  Border marginBorder = new EmptyBorder(0, 2, 0, 2);
  EtchedBorder etchedBorder = new EtchedBorder();
  Border compoundBorder = new CompoundBorder(etchedBorder, marginBorder);
  menuBar.setBorder(compoundBorder);
  return menuBar;
}

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

/**
 * Creates and returns a <code>JMenuBar</code>
 */
public static JMenuBar createMenuBar() {
  JMenuBar menuBar = new JMenuBar();
  Border marginBorder = new EmptyBorder(0, 2, 0, 2);
  EtchedBorder etchedBorder = new EtchedBorder();
  Border compoundBorder = new CompoundBorder(etchedBorder, marginBorder);
  menuBar.setBorder(compoundBorder);
  return menuBar;
}

代码示例来源:origin: SKCraft/SKMCLauncher

private void initMenu() {
  JMenuBar menuBar;
  menuBar = new JMenuBar();
  menuBar.add(new JMenu(_("launcher.menu.launcher")));
  menuBar.add(new JMenu(_("launcher.menu.profiles")));
  menuBar.add(new JMenu(_("launcher.menu.help")));
  menuBar.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
  setJMenuBar(menuBar);
}

代码示例来源:origin: com.jtattoo/JTattoo

public void installUI(JComponent c) {
  super.installUI(c);
  if ((c != null) && (c instanceof JMenuBar)) {
    ((JMenuBar) c).setBorder(AluminiumBorders.getMenuBarBorder());
  }
}

代码示例来源:origin: com.jtattoo/JTattoo

public void installUI(JComponent c) {
  super.installUI(c);
  if ((c != null) && (c instanceof JMenuBar)) {
    ((JMenuBar) c).setBorder(HiFiBorders.getMenuBarBorder());
  }
}

代码示例来源: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: SKCraft/Launcher

menuBar.setBorder(BorderFactory.createEmptyBorder());

代码示例来源:origin: Audiveris/audiveris

innerBar.setBorder(null);
outerBar.setBorder(null);

相关文章