// MyMetalScrollBarUI.java
// A simple extension of MetalScrollBarUI that draws the thumb as a solid
// black rectangle.
//
import java.awt.*;
import javax.swing.*;
import javax.swing.plaf.*;
import javax.swing.plaf.metal.*;
public class MyMetalScrollBarUI extends MetalScrollBarUI
{
// Create our own scrollbar UI!
public static ComponentUI createUI( JComponent c ) {
return new MyMetalScrollBarUI();
}
// This method paints the scroll thumb. Weâ |