UIDefaults defaults = UIManager.getLookAndFeelDefaults();  menuBar.setBackground(defaults.getColor("MenuBar.background")); menuBar.setBorder(defaults.getBorder("MenuBar.border")); menuBar.setFont(defaults.getFont("MenuBar.font")); menuBar.setForeground(defaults.getColor("MenuBar.foreground"));
LookAndFeel.installBorder(menuBar, "MenuBar.border"); LookAndFeel.installColorsAndFont(menuBar, "MenuBar.background", "MenuBar.foreground", "MenuBar.font");
  protected void installDefaults()  {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    menuBar.setBackground(defaults.getColor("MenuBar.background"));    menuBar.setBorder(defaults.getBorder("MenuBar.border"));    menuBar.setFont(defaults.getFont("MenuBar.font"));    menuBar.setForeground(defaults.getColor("MenuBar.foreground"));    menuBar.setOpaque(true);  }