O'Reilly logo

Eclipse 4 Plug-in Development by Example Beginner's Guide by Dr. Alex Blewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Creating Views with SWT

SWT is the widget toolkit that Eclipse uses, which gives performant access to the platform's native tools in a portable manner. Unlike Swing, which is rendered with Java native drawing operations, SWT delegates the drawing to the underlying operating system.

In this chapter, we shall:

  • Create an Eclipse view with SWT widgets
  • Create a custom SWT widget
  • Work with resources and learn how to detect and fix resource leaks
  • Handle focus operations
  • Group components and resize them automatically
  • Create system tray items
  • Display non-rectangular windows
  • Provide scrolling and tabbed navigation

Creating views and widgets

This section introduces views and widgets and uses as its example clocks.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required