53 |
public class BasicScrollPaneUI extends ScrollPaneUI |
public class BasicScrollPaneUI extends ScrollPaneUI |
54 |
implements ScrollPaneConstants |
implements ScrollPaneConstants |
55 |
{ |
{ |
56 |
|
|
57 |
|
/** The Scrollpane for which the UI is provided by this class. */ |
58 |
|
protected JScrollPane scrollpane; |
59 |
|
|
60 |
public static ComponentUI createUI(final JComponent c) |
public static ComponentUI createUI(final JComponent c) |
61 |
{ |
{ |
62 |
return new BasicScrollPaneUI(); |
return new BasicScrollPaneUI(); |
64 |
|
|
65 |
protected void installDefaults(JScrollPane p) |
protected void installDefaults(JScrollPane p) |
66 |
{ |
{ |
67 |
|
scrollpane = p; |
68 |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); |
69 |
p.setForeground(defaults.getColor("ScrollPane.foreground")); |
p.setForeground(defaults.getColor("ScrollPane.foreground")); |
70 |
p.setBackground(defaults.getColor("ScrollPane.background")); |
p.setBackground(defaults.getColor("ScrollPane.background")); |
79 |
p.setBackground(null); |
p.setBackground(null); |
80 |
p.setFont(null); |
p.setFont(null); |
81 |
p.setBorder(null); |
p.setBorder(null); |
82 |
|
scrollpane = null; |
83 |
} |
} |
84 |
|
|
85 |
public void installUI(final JComponent c) |
public void installUI(final JComponent c) |