Skip to content

ToolButton

Compact square toolbar button with icon, tooltip label, and toolbar styling.

Overview

ToolButton extends Button with square dimensions and streamlined toolbar aesthetics. It is typically housed inside a toolbar row alongside other command tools.

Toolbar Button

ToolButton cutBtn = new ToolButton("Cut")
        .icon("icons/cut.png");
cutBtn.onClick(e -> performCut());