Skip to content

RoundedToolbar

lcaron edited this page Jul 7, 2015 · 1 revision

Introduction

https://raw.githubusercontent.com/lcaron/opal/wiki/images/RoundedToolbar.png

A simple rounded toolbar with grey icons.

Usage

This is very simple : you instantiate a RoundedToolbar and then you create RoundedToolItems :

final RoundedToolbar roundedToolBar = new RoundedToolbar(shell, SWT.NONE);

RoundedToolItem item = new RoundedToolItem(roundedToolBar);
item.setTooltipText("Simple item");
item.setSelectionImage(iconBubble1w);
item.setImage(iconBubble1b);
item.setWidth(40);

And voilà !

You can customize your buttons: selection image, image when not selected or disabled, font color, size...

Examples

An example called RoundedToolbarSnippet.java is located in the directory src/test/java/org/mihalis/opal/roundedToolbar.

This example is also available here :

Clone this wiki locally