Package furbelow

Class ComponentIcon

java.lang.Object
furbelow.ComponentIcon
All Implemented Interfaces:
Icon

public class ComponentIcon extends Object implements Icon
Provides the contents of a Component in Icon form. Use this in conjunction with ScaledIcon to provide component thumbnails.

NOTE: Component.paintAll(java.awt.Graphics) requires that Component.isShowing() return true before it will paint anything.

  • Constructor Details

    • ComponentIcon

      public ComponentIcon(JComponent c)
      Iconify the given component, excluding its border.
    • ComponentIcon

      public ComponentIcon(JComponent c, boolean includeBorder)
      Iconify the given component, indicating whether to include its border.
  • Method Details