Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

Nebula Carousel

< Back to Nebula Main Page



A widget that displays a set of images. Users can navigate through the images. When one selects an image or go to the previous/next image, a smooth transition is applied.


The first thing to do is to instantiate the widget, then you add images (by calling the methods setImages or addImage)

final Carousel carousel = new Carousel(shell, SWT.NONE);

You can customise some elements : color of arrows (setArrowColor()) or the circles :

  • The selected index is represented by a filled circle which color that can be changed by calling the method setCircleBackground()
  • The non-selected index is represented by a circle that which color can be changed by calling the method setCircleForeground()
  • You can change the hover color (color used when the mouse pointer is over a circle) with the method setCircleHoverColor()

A SelectionEvent is fired when the user selects an image.


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

This example is also available here :

Back to the top