39 |
package javax.swing.plaf.metal; |
package javax.swing.plaf.metal; |
40 |
|
|
41 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
42 |
|
import javax.swing.JScrollPane; |
43 |
import javax.swing.plaf.ComponentUI; |
import javax.swing.plaf.ComponentUI; |
44 |
import javax.swing.plaf.basic.BasicScrollPaneUI; |
import javax.swing.plaf.basic.BasicScrollPaneUI; |
45 |
|
|
46 |
|
/** |
47 |
|
* A UI delegate for the {@link JScrollPane} component. |
48 |
|
*/ |
49 |
public class MetalScrollPaneUI |
public class MetalScrollPaneUI |
50 |
extends BasicScrollPaneUI |
extends BasicScrollPaneUI |
51 |
{ |
{ |
55 |
private static MetalScrollPaneUI instance = null; |
private static MetalScrollPaneUI instance = null; |
56 |
|
|
57 |
/** |
/** |
58 |
* Constructs a new instance of MetalScrollPaneUI. |
* Constructs a new instance of <code>MetalScrollPaneUI</code>. |
59 |
*/ |
*/ |
60 |
public MetalScrollPaneUI() |
public MetalScrollPaneUI() |
61 |
{ |
{ |
63 |
} |
} |
64 |
|
|
65 |
/** |
/** |
66 |
* Returns an instance of MetalScrollPaneUI. |
* Returns a shared instance of <code>MetalScrollPaneUI</code>. |
67 |
* |
* |
68 |
* @param component the component for which we return an UI instance |
* @param component the component for which we return an UI instance |
69 |
* |
* |
70 |
* @return an instance of MetalScrollPaneUI |
* @return A shared instance of <code>MetalScrollPaneUI</code>. |
71 |
*/ |
*/ |
72 |
public static ComponentUI createUI(JComponent component) |
public static ComponentUI createUI(JComponent component) |
73 |
{ |
{ |