private void defineInternalFrameMenuButtons(UIDefaults d){
  String p="InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"";
  String c=PAINTER_PREFIX + "TitlePaneMenuButtonPainter";
  d.put(p + ".WindowNotFocused",new TitlePaneMenuButtonWindowNotFocusedState());
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + "[Enabled].iconPainter",new LazyPainter(c,TitlePaneMenuButtonPainter.Which.ICON_ENABLED));
  d.put(p + "[Disabled].iconPainter",new LazyPainter(c,TitlePaneMenuButtonPainter.Which.ICON_DISABLED));
  d.put(p + "[MouseOver].iconPainter",new LazyPainter(c,TitlePaneMenuButtonPainter.Which.ICON_MOUSEOVER));
  d.put(p + "[Pressed].iconPainter",new LazyPainter(c,TitlePaneMenuButtonPainter.Which.ICON_PRESSED));
  d.put(p + "[Enabled+WindowNotFocused].iconPainter",new LazyPainter(c,TitlePaneMenuButtonPainter.Which.ICON_ENABLED_WINDOWNOTFOCUSED));
  d.put(p + "[MouseOver+WindowNotFocused].iconPainter",new LazyPainter(c,TitlePaneMenuButtonPainter.Which.ICON_MOUSEOVER_WINDOWNOTFOCUSED));
  d.put(p + "[Pressed+WindowNotFocused].iconPainter",new LazyPainter(c,TitlePaneMenuButtonPainter.Which.ICON_PRESSED_WINDOWNOTFOCUSED));
  d.put(p + ".icon",new SeaGlassIcon(p,"iconPainter",19,18));
}

private void defineInternalFrameMenuButtons ( UIDefaults d ) { String p = "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"" ; String c = PAINTER_PREFIX + "TitlePaneMenuButtonPainter" ; d . put ( p + ".WindowNotFocused" , new TitlePaneMenuButtonWindowNotFocusedState ( ) ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + "[Enabled].iconPainter" , new LazyPainter ( c , TitlePaneMenuButtonPainter . Which . ICON_ENABLED ) ) ; d . put ( p + "[Disabled].iconPainter" , new LazyPainter ( c , TitlePaneMenuButtonPainter . Which . ICON_DISABLED ) ) ; d . put ( p + "[MouseOver].iconPainter" , new LazyPainter ( c , TitlePaneMenuButtonPainter . Which . ICON_MOUSEOVER ) ) ; d . put ( p + "[Pressed].iconPainter" , new LazyPainter ( c , TitlePaneMenuButtonPainter . Which . ICON_PRESSED ) ) ; d . put ( p + "[Enabled+WindowNotFocused].iconPainter" , new LazyPainter ( c , TitlePaneMenuButtonPainter . Which . ICON_ENABLED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[MouseOver+WindowNotFocused].iconPainter" , new LazyPainter ( c , TitlePaneMenuButtonPainter . Which . ICON_MOUSEOVER_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[Pressed+WindowNotFocused].iconPainter" , new LazyPainter ( c , TitlePaneMenuButtonPainter . Which . ICON_PRESSED_WINDOWNOTFOCUSED ) ) ; d . put ( p + ".icon" , new SeaGlassIcon ( p , "iconPainter" , 19 , 18 ) ) ; }
initialize the internal frame menu button settings .
