Module java.desktop

Class MetalScrollButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class MetalScrollButton
extends BasicArrowButton
JButton object for Metal scrollbar arrows.

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. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

  • Constructor Details

    • MetalScrollButton

      public MetalScrollButton​(int direction, int width, boolean freeStanding)
      Constructs an instance of MetalScrollButton.
      Parameters:
      direction - the direction
      width - the width
      freeStanding - the free standing value
  • Method Details

    • setFreeStanding

      public void setFreeStanding​(boolean freeStanding)
      Sets the free standing value.
      Parameters:
      freeStanding - the free standing value
    • getButtonWidth

      public int getButtonWidth()
      Returns the width of the button.
      Returns:
      the width of the button