private void definePopups(UIDefaults d){
  d.put("seaGlassPopupBorder",new ColorUIResource(0xbbbbbb));
  d.put("popupMenuInteriorEnabled",Color.WHITE);
  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));
  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));
}

private void definePopups ( UIDefaults d ) { d . put ( "seaGlassPopupBorder" , new ColorUIResource ( 0xbbbbbb ) ) ; d . put ( "popupMenuInteriorEnabled" , Color . WHITE ) ; 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 ) ) ; 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 ) ) ; }
initialize the popup settings .
