FileDocCategorySizeDatePackage
MyMetalScrollBarUI.javaAPI DocExample1443Thu Oct 24 20:14:28 BST 2002None

MyMetalScrollBarUI.java

// 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â