| Advanced Features > Using JViews Framework in SWT Applications > Using the Bridge |
Using the Bridge |
INDEX
PREVIOUS
NEXT
|
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:
Component hierarchy.
IlvSwingControl works also on platforms that do not have SWT_AWT platforms, like X11/Motif and MacOS X 10.4.
Component inside the AWT component hierarchy.
LayoutManager) is integrated.
| 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.
|
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |