Skip to content

Commit 4d5649f

Browse files
committed
who knows
1 parent 2055955 commit 4d5649f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

java/src/processing/mode/java/SimpleTabbedPaneUI.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
import java.awt.*;
88
import java.awt.event.MouseAdapter;
99
import 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?
1413
public 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

Comments
 (0)