private void defineInternalFrameIconifyButtons(UIDefaults d){
  String p="InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"";
  String c=PAINTER_PREFIX + "TitlePaneIconifyButtonPainter";
  d.put(p + ".States","Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused,WindowMinimized");
  d.put(p + ".WindowNotFocused",new TitlePaneIconifyButtonWindowNotFocusedState());
  d.put(p + ".WindowMinimized",new TitlePaneIconifyButtonWindowMinimizedState());
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[MouseOver].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MOUSEOVER));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Enabled+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_ENABLED_WINDOWNOTFOCUSED));
  d.put(p + "[MouseOver+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED));
  d.put(p + "[Pressed+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_PRESSED_WINDOWNOTFOCUSED));
  d.put(p + "[Disabled+WindowMinimized].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MINIMIZED_DISABLED));
  d.put(p + "[Enabled+WindowMinimized].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MINIMIZED_ENABLED));
  d.put(p + "[MouseOver+WindowMinimized].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MINIMIZED_MOUSEOVER));
  d.put(p + "[Pressed+WindowMinimized].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MINIMIZED_PRESSED));
  d.put(p + "[Enabled+WindowMinimized+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MINIMIZED_ENABLED_WINDOWNOTFOCUSED));
  d.put(p + "[MouseOver+WindowMinimized+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MINIMIZED_MOUSEOVER_WINDOWNOTFOCUSED));
  d.put(p + "[Pressed+WindowMinimized+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneIconifyButtonPainter.Which.BACKGROUND_MINIMIZED_PRESSED_WINDOWNOTFOCUSED));
  d.put(p + ".icon",new SeaGlassIcon(p,"iconPainter",26,18));
}

private void defineInternalFrameIconifyButtons ( UIDefaults d ) { String p = "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"" ; String c = PAINTER_PREFIX + "TitlePaneIconifyButtonPainter" ; d . put ( p + ".States" , "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused,WindowMinimized" ) ; d . put ( p + ".WindowNotFocused" , new TitlePaneIconifyButtonWindowNotFocusedState ( ) ) ; d . put ( p + ".WindowMinimized" , new TitlePaneIconifyButtonWindowMinimizedState ( ) ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[MouseOver].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MOUSEOVER ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Enabled+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_ENABLED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[MouseOver+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[Pressed+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_PRESSED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[Disabled+WindowMinimized].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MINIMIZED_DISABLED ) ) ; d . put ( p + "[Enabled+WindowMinimized].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MINIMIZED_ENABLED ) ) ; d . put ( p + "[MouseOver+WindowMinimized].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MINIMIZED_MOUSEOVER ) ) ; d . put ( p + "[Pressed+WindowMinimized].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MINIMIZED_PRESSED ) ) ; d . put ( p + "[Enabled+WindowMinimized+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MINIMIZED_ENABLED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[MouseOver+WindowMinimized+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MINIMIZED_MOUSEOVER_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[Pressed+WindowMinimized+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneIconifyButtonPainter . Which . BACKGROUND_MINIMIZED_PRESSED_WINDOWNOTFOCUSED ) ) ; d . put ( p + ".icon" , new SeaGlassIcon ( p , "iconPainter" , 26 , 18 ) ) ; }
initialize the internal frame iconify button settings .
