public class

WindowsScrollBarUI

extends BasicScrollBarUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.ScrollBarUI
       ↳ javax.swing.plaf.basic.BasicScrollBarUI
         ↳ com.sun.java.swing.plaf.windows.WindowsScrollBarUI

Class Overview

Windows rendition of the component.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

Summary

[Expand]
Inherited Constants
From class javax.swing.plaf.basic.BasicScrollBarUI
From interface javax.swing.SwingConstants
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicScrollBarUI
Public Constructors
WindowsScrollBarUI()
Public Methods
static ComponentUI createUI(JComponent c)
Creates a UI for a JScrollBar.
void uninstallUI(JComponent c)
Reverses configuration which was done on the specified component during installUI.
Protected Methods
void configureScrollBarColors()
BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
JButton createDecreaseButton(int orientation)
JButton createIncreaseButton(int orientation)
void installDefaults()
void paintDecreaseHighlight(Graphics g)
void paintIncreaseHighlight(Graphics g)
void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
void setThumbRollover(boolean active)
Sets whether or not the mouse is currently over the thumb.
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicScrollBarUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object
From interface java.awt.LayoutManager

Public Constructors

public WindowsScrollBarUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

Creates a UI for a JScrollBar.

Parameters
c the text field
Returns
  • the UI

public void uninstallUI (JComponent c)

Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:

  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.

Parameters
c the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

Protected Methods

protected void configureScrollBarColors ()

protected BasicScrollBarUI.ArrowButtonListener createArrowButtonListener ()

protected JButton createDecreaseButton (int orientation)

protected JButton createIncreaseButton (int orientation)

protected void installDefaults ()

protected void paintDecreaseHighlight (Graphics g)

protected void paintIncreaseHighlight (Graphics g)

protected void paintThumb (Graphics g, JComponent c, Rectangle thumbBounds)

protected void paintTrack (Graphics g, JComponent c, Rectangle trackBounds)

protected void setThumbRollover (boolean active)

Sets whether or not the mouse is currently over the thumb.

Parameters
active True indicates the thumb is currently active.