Graphic Components > Using JViews TGO 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 IlpNetwork, IlpEquipment, IlpTree, and IlpTable 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 = ...;
IlpNetwork network = new IlpNetwork();
ControlSWTnetwork = new IlvSwingControl(parent, SWT.NONE, network);

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.