Running The Tutorial Example

To run the tutorial example, please do the following in Eclipse:

  1. Select package “com.tensegrity.firststeps.layout” or “com.tensegrity.firststeps.swt.layout” with the left mouse button.

  2. Select the menu “Run”.

  3. Select the child menu “run as”.

  4. Select “Java Application

  5. The main method from the “Main.java” compiled class will be executed.

  6. In the running application, press one of the “Layout” buttons. Move some nodes around and press again one of the buttons.

Note

Running the SWT-based example as described above you will probably encounter an error of this type: “java.lang.UnsatisfiedLinkError: no swt-win32-3062 in java.library.path”. Please refer to the note in section “Running The Tutorial Example” of chapter “Hello Node” in order to see how to overcome this issue.

Figure 7.1. Screenshot LayoutExample

Screenshot LayoutExample

Tree and Circular Layout Types