TexturePainter tp4 = new TexturePainter ( loadIcon ( "bg4.jpg" ) );
WebTabbedPane tabbedPane = new WebTabbedPane ();
tabbedPane.setPreferredSize ( new Dimension ( 300, 200 ) );
tabbedPane.addTab ( "Tab 1", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp1 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
tabbedPane.addTab ( "Tab 2", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp2 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
tabbedPane.addTab ( "Tab 3", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp3 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
tabbedPane.addTab ( "Tab 4", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp4 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
tabbedPane.addTab ( "Tab 5", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp1 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
tabbedPane.addTab ( "Tab 6", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp2 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
tabbedPane.addTab ( "Tab 7", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp3 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
tabbedPane.addTab ( "Tab 8", new WebLabel () );
tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp4 );
tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );
return new GroupPanel ( tabbedPane );
}