49 |
public class MetalScrollPaneUI |
public class MetalScrollPaneUI |
50 |
extends BasicScrollPaneUI |
extends BasicScrollPaneUI |
51 |
{ |
{ |
|
|
|
|
// FIXME: maybe replace by a Map of instances when this becomes stateful |
|
|
/** The shared UI instance for JScrollPanes. */ |
|
|
private static MetalScrollPaneUI instance = null; |
|
|
|
|
52 |
/** |
/** |
53 |
* Constructs a new instance of <code>MetalScrollPaneUI</code>. |
* Constructs a new instance of <code>MetalScrollPaneUI</code>. |
54 |
*/ |
*/ |
66 |
*/ |
*/ |
67 |
public static ComponentUI createUI(JComponent component) |
public static ComponentUI createUI(JComponent component) |
68 |
{ |
{ |
69 |
if (instance == null) |
return new MetalScrollPaneUI(); |
|
instance = new MetalScrollPaneUI(); |
|
|
return instance; |
|
70 |
} |
} |
71 |
} |
} |