Class ShrinkWrapper

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ShrinkWrapper extends JPanel
Provides a container for a component whose maximum size is the same as its preferred size. This preferred size is the same as the preferred size of the contained component. This is useful for components which get stretched in an unwelcome way, for instance a JComboBox in a BoxLayout.
Since:
9 Mar 2005
Author:
Mark Taylor (Starlink)
See Also:
  • Constructor Details

    • ShrinkWrapper

      public ShrinkWrapper(Component component)
      Constructs a shrink wrapper.
      Parameters:
      component - the component to be wrapped
  • Method Details