private void defineInternalFrames(UIDefaults d){
  d.put("InternalFrameTitlePane.contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("InternalFrameTitlePane.maxFrameIconSize",new DimensionUIResource(18,18));
  d.put("InternalFrame.contentMargins",new InsetsUIResource(1,6,6,6));
  d.put("InternalFrame:InternalFrameTitlePane.contentMargins",new InsetsUIResource(3,0,3,0));
  d.put("InternalFrame:InternalFrameTitlePane.titleAlignment","CENTER");
  d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\".contentMargins",new InsetsUIResource(9,9,9,9));
  d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\".contentMargins",new InsetsUIResource(9,9,9,9));
  d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\".contentMargins",new InsetsUIResource(9,9,9,9));
  if (PlatformUtils.isMac()) {
    d.put("frameBaseActive",new Color(0xa8a8a8));
  }
 else {
    d.put("frameBaseActive",new Color(0x96adc4));
  }
  d.put("frameBaseInactive",new Color(0xe0e0e0));
  d.put("frameBorderBase",new Color(0x545454));
  d.put("frameInnerHighlightInactive",new Color(0x55ffffff,true));
  d.put("frameInnerHighlightActive",new Color(0x55ffffff,true));
  d.put("seaGlassTitlePaneButtonEnabledBorder",new Color(0x99000000,true));
  d.put("seaGlassTitlePaneButtonEnabledCorner",new Color(0x26000000,true));
  d.put("seaGlassTitlePaneButtonEnabledInterior",new Color(0x99ffffff,true));
  d.put("seaGlassTitlePaneButtonHoverBorder",new Color(0xe5101010,true));
  d.put("seaGlassTitlePaneButtonHoverCorner",new Color(0x267a7a7a,true));
  d.put("seaGlassTitlePaneButtonHoverInterior",new Color(0xffffff));
  d.put("seaGlassTitlePaneButtonPressedBorder",new Color(0xe50e0e0e,true));
  d.put("seaGlassTitlePaneButtonPressedCorner",new Color(0x876e6e6e,true));
  d.put("seaGlassTitlePaneButtonPressedInterior",new Color(0xe6e6e6));
  String p="InternalFrame";
  String c=PAINTER_PREFIX + "FrameAndRootPainter";
  d.put(p + ".titleFont",new DerivedFont("defaultFont",1.0f,true,null));
  d.put(p + ".States","Enabled,WindowFocused");
  d.put(p + ":InternalFrameTitlePane.WindowFocused",new TitlePaneWindowFocusedState());
  d.put(p + ".WindowFocused",new InternalFrameWindowFocusedState());
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,FrameAndRootPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Enabled+WindowFocused].backgroundPainter",new LazyPainter(c,FrameAndRootPainter.Which.BACKGROUND_ENABLED_WINDOWFOCUSED));
  p="InternalFrameTitlePane";
  d.put(p + ".buttonSpacing",0);
  p="InternalFrame:InternalFrameTitlePane";
  d.put(p + "[Enabled].textForeground",d.get("seaGlassDisabledText"));
  d.put(p + "[WindowFocused].textForeground",Color.BLACK);
}

private void defineInternalFrames ( UIDefaults d ) { d . put ( "InternalFrameTitlePane.contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "InternalFrameTitlePane.maxFrameIconSize" , new DimensionUIResource ( 18 , 18 ) ) ; d . put ( "InternalFrame.contentMargins" , new InsetsUIResource ( 1 , 6 , 6 , 6 ) ) ; d . put ( "InternalFrame:InternalFrameTitlePane.contentMargins" , new InsetsUIResource ( 3 , 0 , 3 , 0 ) ) ; d . put ( "InternalFrame:InternalFrameTitlePane.titleAlignment" , "CENTER" ) ; d . put ( "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\".contentMargins" , new InsetsUIResource ( 9 , 9 , 9 , 9 ) ) ; d . put ( "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\".contentMargins" , new InsetsUIResource ( 9 , 9 , 9 , 9 ) ) ; d . put ( "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\".contentMargins" , new InsetsUIResource ( 9 , 9 , 9 , 9 ) ) ; if ( PlatformUtils . isMac ( ) ) { d . put ( "frameBaseActive" , new Color ( 0xa8a8a8 ) ) ; } else { d . put ( "frameBaseActive" , new Color ( 0x96adc4 ) ) ; } d . put ( "frameBaseInactive" , new Color ( 0xe0e0e0 ) ) ; d . put ( "frameBorderBase" , new Color ( 0x545454 ) ) ; d . put ( "frameInnerHighlightInactive" , new Color ( 0x55ffffff , true ) ) ; d . put ( "frameInnerHighlightActive" , new Color ( 0x55ffffff , true ) ) ; d . put ( "seaGlassTitlePaneButtonEnabledBorder" , new Color ( 0x99000000 , true ) ) ; d . put ( "seaGlassTitlePaneButtonEnabledCorner" , new Color ( 0x26000000 , true ) ) ; d . put ( "seaGlassTitlePaneButtonEnabledInterior" , new Color ( 0x99ffffff , true ) ) ; d . put ( "seaGlassTitlePaneButtonHoverBorder" , new Color ( 0xe5101010 , true ) ) ; d . put ( "seaGlassTitlePaneButtonHoverCorner" , new Color ( 0x267a7a7a , true ) ) ; d . put ( "seaGlassTitlePaneButtonHoverInterior" , new Color ( 0xffffff ) ) ; d . put ( "seaGlassTitlePaneButtonPressedBorder" , new Color ( 0xe50e0e0e , true ) ) ; d . put ( "seaGlassTitlePaneButtonPressedCorner" , new Color ( 0x876e6e6e , true ) ) ; d . put ( "seaGlassTitlePaneButtonPressedInterior" , new Color ( 0xe6e6e6 ) ) ; String p = "InternalFrame" ; String c = PAINTER_PREFIX + "FrameAndRootPainter" ; d . put ( p + ".titleFont" , new DerivedFont ( "defaultFont" , 1.0f , true , null ) ) ; d . put ( p + ".States" , "Enabled,WindowFocused" ) ; d . put ( p + ":InternalFrameTitlePane.WindowFocused" , new TitlePaneWindowFocusedState ( ) ) ; d . put ( p + ".WindowFocused" , new InternalFrameWindowFocusedState ( ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , FrameAndRootPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Enabled+WindowFocused].backgroundPainter" , new LazyPainter ( c , FrameAndRootPainter . Which . BACKGROUND_ENABLED_WINDOWFOCUSED ) ) ; p = "InternalFrameTitlePane" ; d . put ( p + ".buttonSpacing" , 0 ) ; p = "InternalFrame:InternalFrameTitlePane" ; d . put ( p + "[Enabled].textForeground" , d . get ( "seaGlassDisabledText" ) ) ; d . put ( p + "[WindowFocused].textForeground" , Color . BLACK ) ; }
set the icons to paint the title pane decorations .
