Class TrackingSpacer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class TrackingSpacer extends JComponent
A JComponent that tracks the width or height of another component.
See Also:
  • Constructor Details

    • TrackingSpacer

      public TrackingSpacer(JComponent componentToTrack, TrackingSpacer.TrackingDimension trackingDimension, int delta)
      Creates a spacer component that adjusts it's width or height to the given component.
      Parameters:
      componentToTrack - the component to track the width or height of.
      trackingDimension - the dimension of the given compoonent to track.
      delta - the amount to add or subtract from the given components size (helps accomodate padding).