77import java .awt .*;
88import java .awt .event .MouseAdapter ;
99import java .awt .event .MouseEvent ;
10- import java .awt .event .MouseListener ;
11- import java .awt .event .MouseMotionListener ;
1210
1311
12+ // TODO why the hell is this not doing anything?
1413public class SimpleTabbedPaneUI extends BasicTabbedPaneUI {
1514 private ColorSet selectedColorSet ;
1615 private ColorSet defaultColorSet ;
@@ -23,9 +22,9 @@ public class SimpleTabbedPaneUI extends BasicTabbedPaneUI {
2322 private int lastRollOverTab = -1 ;
2423
2524
26- // public static ComponentUI createUI(JComponent c) {
27- // return new SimpleTabbedPaneUI();
28- // }
25+ public static ComponentUI createUI (JComponent c ) {
26+ return new SimpleTabbedPaneUI ();
27+ }
2928
3029
3130 public SimpleTabbedPaneUI () {
@@ -152,9 +151,9 @@ protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) {
152151 super .paintTabArea (g , tabPlacement , selectedIndex );
153152
154153 //g2d.setClip(0, 0, tabPane.getWidth(), tabPane.getHeight());
155- System .out .println ("painting green " + g2d .getClip ());
156- g2d .setColor (Color .GREEN );
157- g2d .fillRect (0 , 0 , tabPane .getWidth (), 21 );
154+ // System.out.println("painting green " + g2d.getClip());
155+ // g2d.setColor(Color.GREEN);
156+ // g2d.fillRect(0, 0, tabPane.getWidth(), 21);
158157
159158 if (contentTopBorderDrawn ) {
160159 g2d .setColor (lineColor );
0 commit comments