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