private void defineInternalFrameCloseButtons(UIDefaults d){
  String p="InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"";
  String c=PAINTER_PREFIX + "TitlePaneCloseButtonPainter";
  d.put(p + ".States","Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused");
  d.put(p + ".WindowNotFocused",new TitlePaneCloseButtonWindowNotFocusedState());
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,TitlePaneCloseButtonPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,TitlePaneCloseButtonPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[MouseOver].backgroundPainter",new LazyPainter(c,TitlePaneCloseButtonPainter.Which.BACKGROUND_MOUSEOVER));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,TitlePaneCloseButtonPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Enabled+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneCloseButtonPainter.Which.BACKGROUND_ENABLED_WINDOWNOTFOCUSED));
  d.put(p + "[MouseOver+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneCloseButtonPainter.Which.BACKGROUND_MOUSEOVER));
  d.put(p + "[Pressed+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneCloseButtonPainter.Which.BACKGROUND_PRESSED_WINDOWNOTFOCUSED));
  d.put(p + ".icon",new SeaGlassIcon(p,"iconPainter",43,18));
}

private void defineInternalFrameCloseButtons ( UIDefaults d ) { String p = "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"" ; String c = PAINTER_PREFIX + "TitlePaneCloseButtonPainter" ; d . put ( p + ".States" , "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused" ) ; d . put ( p + ".WindowNotFocused" , new TitlePaneCloseButtonWindowNotFocusedState ( ) ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , TitlePaneCloseButtonPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , TitlePaneCloseButtonPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[MouseOver].backgroundPainter" , new LazyPainter ( c , TitlePaneCloseButtonPainter . Which . BACKGROUND_MOUSEOVER ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , TitlePaneCloseButtonPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Enabled+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneCloseButtonPainter . Which . BACKGROUND_ENABLED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[MouseOver+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneCloseButtonPainter . Which . BACKGROUND_MOUSEOVER ) ) ; d . put ( p + "[Pressed+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneCloseButtonPainter . Which . BACKGROUND_PRESSED_WINDOWNOTFOCUSED ) ) ; d . put ( p + ".icon" , new SeaGlassIcon ( p , "iconPainter" , 43 , 18 ) ) ; }
initialize the internal frame close button settings .
