Creating a Project to Handle the User Interface

You will import a project that uses the JavaFX library to implement a user interface:

Importing the addressBookFX project

To import the project:

  1. Click File > Import.

    This opens the Import dialog box.

  2. Click General > Existing Projects into Workspace.
  3. Click Next.
  4. Click Browse next to the Select root directory field.

    This opens the Browse For Folder dialog box.

  5. Navigate to the Eclipse\jvm_cobol\AddressBookDemo folder in the samples directory installed with Visual COBOL, which by default is $COBDIR/demo.
  6. Click OK.
  7. In the Projects list, ensure that just the addressBookFX is checked.
  8. Click Copy projects into workspace.
  9. Click Finish.

Add the COBOL JVM Runtime System

Ensure that the COBOL JVM Runtime System has been added to the addressBookFX project's Java Build Path libraries:

  1. In COBOL Explorer, right-click addressBookFX, and then click Properties.

    This opens the Properties for addressBookFX dialog box.

  2. Click Java Build Path.
  3. Click the Libraries tab.
  4. Click Add Library.

    This opens the Add Library dialog box.

  5. Click COBOL JVM Runtime System.
  6. Click Next.
  7. Click Finish.
  8. Click Apply and Close.