private void defineInternalFrameMaximizeButton(UIDefaults d){
  String p="InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"";
  String c=PAINTER_PREFIX + "TitlePaneMaximizeButtonPainter";
  d.put(p + ".WindowNotFocused",new TitlePaneMaximizeButtonWindowNotFocusedState());
  d.put(p + ".WindowMaximized",new TitlePaneMaximizeButtonWindowMaximizedState());
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[MouseOver].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MOUSEOVER));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Enabled+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_ENABLED_WINDOWNOTFOCUSED));
  d.put(p + "[MouseOver+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED));
  d.put(p + "[Pressed+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_PRESSED_WINDOWNOTFOCUSED));
  d.put(p + "[Disabled+WindowMaximized].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MAXIMIZED_DISABLED));
  d.put(p + "[Enabled+WindowMaximized].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MAXIMIZED_ENABLED));
  d.put(p + "[MouseOver+WindowMaximized].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MAXIMIZED_MOUSEOVER));
  d.put(p + "[Pressed+WindowMaximized].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MAXIMIZED_PRESSED));
  d.put(p + "[Enabled+WindowMaximized+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MAXIMIZED_ENABLED_WINDOWNOTFOCUSED));
  d.put(p + "[MouseOver+WindowMaximized+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MAXIMIZED_MOUSEOVER_WINDOWNOTFOCUSED));
  d.put(p + "[Pressed+WindowMaximized+WindowNotFocused].backgroundPainter",new LazyPainter(c,TitlePaneMaximizeButtonPainter.Which.BACKGROUND_MAXIMIZED_PRESSED_WINDOWNOTFOCUSED));
  d.put(p + ".icon",new SeaGlassIcon(p,"iconPainter",25,18));
}

private void defineInternalFrameMaximizeButton ( UIDefaults d ) { String p = "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"" ; String c = PAINTER_PREFIX + "TitlePaneMaximizeButtonPainter" ; d . put ( p + ".WindowNotFocused" , new TitlePaneMaximizeButtonWindowNotFocusedState ( ) ) ; d . put ( p + ".WindowMaximized" , new TitlePaneMaximizeButtonWindowMaximizedState ( ) ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[MouseOver].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MOUSEOVER ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Enabled+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_ENABLED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[MouseOver+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[Pressed+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_PRESSED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[Disabled+WindowMaximized].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MAXIMIZED_DISABLED ) ) ; d . put ( p + "[Enabled+WindowMaximized].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MAXIMIZED_ENABLED ) ) ; d . put ( p + "[MouseOver+WindowMaximized].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MAXIMIZED_MOUSEOVER ) ) ; d . put ( p + "[Pressed+WindowMaximized].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MAXIMIZED_PRESSED ) ) ; d . put ( p + "[Enabled+WindowMaximized+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MAXIMIZED_ENABLED_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[MouseOver+WindowMaximized+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MAXIMIZED_MOUSEOVER_WINDOWNOTFOCUSED ) ) ; d . put ( p + "[Pressed+WindowMaximized+WindowNotFocused].backgroundPainter" , new LazyPainter ( c , TitlePaneMaximizeButtonPainter . Which . BACKGROUND_MAXIMIZED_PRESSED_WINDOWNOTFOCUSED ) ) ; d . put ( p + ".icon" , new SeaGlassIcon ( p , "iconPainter" , 25 , 18 ) ) ; }
initialize the internal frame maximize button settings .
