You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laurent CARON edited this page Jan 10, 2026
·
1 revision
Introduction
This widget displays a round-shaded button. It could be used for example to filter a list of data (like the tags in blogs)
Usage
The first thing to do is instantiate the widget. 2 style flags can be applied : SWT.PUSH to create a Chip displayed like a toogle button or SWT.CHECK to create a Chip that reacts like a checkbox. You can use the SWT.CLOSE flag to display a "close" button.
This widget is highly customizable : you can change the background color, the foreground color, the border color, ... You can also customize these colors when the mouse is hover, when the button is "selected" (toggle on), ... For that, just call the relevant setters. I recommand you to look at the snippet, which shows all possibilities.
Example
An example called ChipsSnippet.java is located in the plugin org.eclipse.nebula.widgets.chips.snippets.