Advanced Features > Using JViews Framework in SWT Applications > Using the Bridge

JViews provides an IlvSwingControl class that encapsulates a Swing JComponent in an SWT widget. It allows you to use IlvManager or IlvJManagerViewPanel objects in an SWT window, together with other SWT or JFace controls. In this way, it provides a bridge between the AWT/Swing windowing system and the SWT windowing system.

For example:

Composite parent = ...;
IlvManagerView mgrView = ...;
IlvJManagerViewPanel jmgrView = new IlvJManagerViewPanel(mgrView);
ControlSWTview = new IlvSwingControl(parent, SWT.NONE, jmgrView);

Using IlvSwingControl instead of the native SWT_AWT class has the following benefits:

Notes
The IlvSwingControl bridge is not supported on all platforms. It is only supported on Windows, UNIX with X11 (Linux, Solaris, AIX, HP-UX), and MacOS X 10.4 or later. The IlvSwingControl bridge does not support arbitrary JComponents. Essentially, components that provide text editing are not supported. See IlvSwingControl for a precise description of the limitations.