1 package org.catacomb.druid.swing;
2
3
4
5 import java.awt.Color;
6 import java.awt.Graphics;
7
8 import javax.swing.JComponent;
9 import javax.swing.plaf.ComponentUI;
10 import javax.swing.plaf.basic.BasicSplitPaneDivider;
11 import javax.swing.plaf.basic.BasicSplitPaneUI;
12
13
14
15
16 public class DSplitPaneUI extends BasicSplitPaneUI {
17
18 JComponent jcomponent;
19
20 Color bgColor = Color.gray;
21
22
23
24 DSplitPaneUI() {
25 this(null);
26 }
27
28
29 DSplitPaneUI(JComponent jc) {
30 super();
31 jcomponent = jc;
32 }
33
34
35
36 public Color getBackground() {
37 return bgColor;
38 }
39
40
41 public void setBackground(Color c) {
42 bgColor = c;
43 }
44
45
46
47 public static ComponentUI createUI(JComponent jcomponent) {
48 return (new DSplitPaneUI(jcomponent));
49 }
50
51
52
53 public BasicSplitPaneDivider createDefaultDivider() {
54 return (new DSplitPaneDivider(this));
55 }
56
57
58 public void paint(Graphics graphics, JComponent jc) {
59 }
60
61
62 protected void uninstallDefaults() {
63 }
64
65 }
66
67