Extending the Flamingo command buttons
October 21st, 2009 | 3 Comments »The command button component is a central building block for the Flamingo component suite. It aims to address the deficiencies of the core Swing button components, adding features expected by the modern applications. While the main goal of Flamingo is to provide a pure Java implementation of the Office 2007 ribbon container, the command buttons can certainly be used outside the ribbon.
The latest 4.2dev drop of the core Flamingo library and 6.0dev drop of the Substance Flamingo plugin provide support for command buttons that have no text and/or no icon. This is a big step forward that positions the Flamingo command button as a drop-in replacement for core Swing buttons, and here are a few screenshots to illustrate these new capabilities.
Here is a screenshot of a few command buttons that have both text and icon:
![]()
Here, the rows show the functionally equivalent command buttons that arrange the text and icon in different layouts – addressing the varying space available to host the specific button. The first column shows action buttons – clicking anywhere on a button will activate the registered listeners. The second column shows split buttons – clicking on icon / text will activate the listeners, while clicking on the drop arrow will show the popup menu.
The next screenshot shows text / icon command buttons of the other two kinds:
![]()
The first column shows another type of split button – where the popup menu is shown when the text is clicked (as opposed to the first split button type where clicking the text activates the main action). The second column is a menu button – clicking anywhere shows the popup menu.
The next two screenshots show the same button arrangement, but this time for buttons with no icons:
![]()
![]()
And the final screenshot shows the same button arrangement, but this time for buttons with no texts:

Related posts:
- Flamingo component suite 3.0 – command buttons One of the basic building blocks in the Flamingo component suite is the command button...
- Flamingo ribbon component: rich tooltips on command buttons The latest addition in the Flamingo component suite is support for rich tooltips on command...
- Polishing the visuals of Flamingo command buttons As the name of this very blog implies, perhaps the most enjoyable part of my...
- Right-to-left support for command buttons in Flamingo 5.0 With Substance 6.0 in release candidate stage, it’s time to go back and work on...
Very nice :)
Great! I was actually looking for this a few weeks ago! :-)
[...] Kirill Grouchnikov clearly had Flamingo on his mind this week, with two blog posts discussing how he has enhanced the ribbon application menu in Flamingo 4.2, and improvements to the command buttons in Flamingo to support buttons with no text and/or graphic. [...]