Class Headless

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class Headless extends JInternalFrame
Aids in creating swing components in a "headless" environment. Useful for using swing components to export graphics to a file, without requiring a connection to a display (with -Djava.awt.headless=true).

From FreeHEP VectorGraphics project (https://github.com/freehep/freehep-vectorgraphics).

See Also:
  • Constructor Details

    • Headless

      public Headless(JComponent component, int width, int height)
  • Method Details