Skip to main content
Jump to: navigation, search

Nebula RoundedSwitch

Revision as of 19:17, 12 August 2020 by (Talk | contribs) (Usage: typo in class name [re]-fixed: correct name is RoundedSwitch)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Back to Nebula Main Page



This widget is a checkbox widget that is represented by a switch button.

It has the same API than the Button widget API, but the look is different.

Please notice that the widget only consists in a checkbox without text. You can not setText(something), you have to create a Label widget besides the checkbox.


You use this widget like a Button with SWT.CHECKBOX style :

 final RoundedSwitch button = new RoundedSwitch(shell, SWT.NONE);

And voilà, it is done !


An example called is located in the plugin org.eclipse.nebula.widgets.roundedswitch.snippets.

This example is also available here :

Back to the top