code: private void definePopups(UIDefaults d) {
          d.put("seaGlassPopupBorder", new ColorUIResource(0xbbbbbb));
  
          d.put("popupMenuInteriorEnabled", Color.WHITE);
          // Rossi: Changed color of popup / submenus to get better contrast to bright backgrounds.
  //        d.put("popupMenuBorderEnabled", new Color(0xdddddd));
          d.put("popupMenuBorderEnabled", new Color(0x5b7ea4));
  
          String c = PAINTER_PREFIX + "PopupMenuPainter";
          String p = "PopupMenu";
  
          d.put(p + ".contentMargins", new InsetsUIResource(6, 1, 6, 1));
          d.put(p + ".opaque", Boolean.TRUE);
          d.put(p + ".consumeEventOnClose", Boolean.TRUE);
          d.put(p + "[Disabled].backgroundPainter", new LazyPainter(c, PopupMenuPainter.Which.BACKGROUND_DISABLED));
          d.put(p + "[Enabled].backgroundPainter", new LazyPainter(c, PopupMenuPainter.Which.BACKGROUND_ENABLED));
  
          // Initialize PopupMenuSeparator
          c = PAINTER_PREFIX + "SeparatorPainter";
          p = "PopupMenuSeparator";
          d.put(p + ".contentMargins", new InsetsUIResource(1, 0, 2, 0));
          d.put(p + "[Enabled].backgroundPainter", new LazyPainter(c, SeparatorPainter.Which.BACKGROUND_ENABLED));
      }
docs: Initialize the popup settings.
  
  @param d the UI defaults map.