* @param w Width of the area to paint to
* @param h Height of the area to paint to
*/
public void paintInternalFrameTitlePaneBackground( SynthContext context, Graphics g, int x, int y, int w, int h )
{
BasicInternalFrameTitlePane pane = (BasicInternalFrameTitlePane)context.getComponent();
int cc = pane.getComponentCount();
for ( int i = 0; i< cc; i++ ) {
JComponent c = (JComponent)pane.getComponent( i );
c.setBorder( null);
//c.setPreferredSize( new java.awt.Dimension( 16, 16 ));
}
pane.getLayout().minimumLayoutSize( pane );
java.awt.Component parent = pane.getParent();
String title = "";
if ( parent instanceof JInternalFrame )
title = ( ( JInternalFrame ) parent ).getTitle();
else {
JInternalFrame.JDesktopIcon desktopIcon = ( JInternalFrame.JDesktopIcon ) parent;