colors[ 2 ] = Color.orange; // activeColor - the stripe under the active component
colors[ 3 ] = colors[ 2 ];// activeTextColor
colors[ 4 ] = Color.red;// pressedTextColor
XTranslator translator = currentProject.getTranslator();
XStyleManager sm = currentProject.getStyleManager();
if ( sm.hasStyle( "dockingHeader" )) {
XStyle xstyle = sm.getStyle( "dockingHeader" );
colors[ 0 ] = xstyle.getStyleAsColor( XStyle.COLOR_BACK );
colors[ 1 ] = xstyle.getStyleAsColor( XStyle.COLOR_FORE );
XStyle xstyleActive = sm.getStyle( "dockingHeader/active" );
colors[ 2 ] = xstyleActive.getStyleAsColor( XStyle.COLOR_BACK );
colors[ 3 ] = xstyleActive.getStyleAsColor( XStyle.COLOR_FORE );
}
// Setup the tooltips
String[] tooltips = new String[ 3 ];
tooltips[ 0 ] = ( translator != null ? translator.translate( "Minimize" ) : "Minimize" );
tooltips[ 1 ] = ( translator != null ? translator.translate( "Zoom/Restore" ) : "Zoom/Restore" );
tooltips[ 2 ] = ( translator != null ? translator.translate( "Close" ) : "Close" );
super.addDockable( dockable, colors, tooltips );
if ( doReplace ) {
if ( contentPane.getComponentCount() > 0 ) {
XDockable docked = findDockable( contentPane.getComponent( 0 ));