| | | | Browse by category |
Problem
How can I integrate JWidgets into Symantec Visual Cafe 2.0?
Action
To integrate JWidgets components into Visual Cafe 2.0, do the following:
-
Start the Visual Cafe IDE and select Window|Component Library from the main menu bar. This will display the Component Library window.
-
Open a Windows Explorer window and browse to the JWidgets installation directory.
-
From the
JWidgets3_0jarsdesign
directory, select any of the available.jar
files (CellGridBean.jar for this example). -
Click and drag the selected
.jar
files from the Windows Explorer window to the Component Library window. Drop the file into the open space below the last component entry in the window.The bean within the jar file will be processed by Visual Cafe and placed into the Component Library display as shown below.
-
If you are importing several components and wish to combine them in a single folder and palette tab, skip this step and see the procedure below.
If you wish to add a bean individually to the component palette, do the following:
-
Click the right mouse button on the JWidgets component item in the Component Library window. A floating menu will appear.
-
Select Add to Palette from the floating menu.
A CellGridBean tab containing the component will be added to the component palette.
-
Combining imported components into a single folder and tab
You may well prefer to have all of the JWidget components in a single folder, and displayed on the palette as a single tab. Unfortunately, to accomplish this, you must first import each component separately as described above. Then do the following:
-
Create a JWidgets folder:
-
Click the right mouse button on the Component Library window.
-
Select Insert Group from the floating menu.
-
Name the resulting folder JWidgets as shown.
-
-
Drag the components from the individual folders into the JWidgets folder, as shown below.
-
To delete the now emptly individual component folders, select each folder and then select Edit|Delete from the menu bar.
When you are done, you should have only a JWidgets folder with all of the JWidgets components.
-
To create a JWidgets tab on the component palette, click the right mouse button on the JWidgets folder in the Component Library window. A floating menu will appear on the window. Select Add to Palette from the floating menu.
A JWidgets tab containing all of the JWidgets components will be added to the component palette.