View TopComponents with icons on Netbeans RCP
This article explains an approach to enable tabs with icons to ‘view’ TopComponents.
This article appeared first on techtavern.wordpress.com
The Problem
A typical Netbeans RCP application always displays TopComponents with ‘editor’ mode with their icon and their title, even if the tab runs out of space. Here is an example:
Tabs of editor TopComponents
TopComponents with other modes are displayed as ‘views’. Their tabs are extremely simplistic: they never show their icon and their title is shortened or even omitted in case of less space. Here is an example:
