Community articleRunning the Form Sample Under Java
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To set up and run the Form sample under Java:
  1. Using the Viewer, open the form called FormSample.xfd found in the folder:
  2.    <API Installation Folder>\samples\java\form\demo\sample_application

  3. Notice the radio buttons used to indicate gender and the empty Age field. Close the Viewer.
  4. Using your Java compiler, compile the file called found in the current folder.
    • This produces a new class file called formSample.class.
  5. Run the sample application formSample.class.
    • This produces a new form called output.xfd in the current folder.
  6. Use the Viewer to compare the two forms.