Skip to content

IconButton

Standalone graphic icon button without text.

Overview

IconButton extends ToolButton to render a clean icon glyph without borders or labels, ideal for close buttons, window controls, and media icons.

Close Window Button

IconButton closeBtn = new IconButton("icons/close.png");
closeBtn.onClick(e -> window.close());