![]()
1.Create a workspace folder, start a new VFC session, Open your Working Folder and arrange your VFC window and folder so you can view them both as you work. You will need a Java compiler - see VFC System Prerequisites.
2.Insert the Basic Applet Template located in the templates Java directory. Select the default name for the program, but be sure to adjust the keyfile to use the keyfile that configures your Java compiler.
Note: To learn how to insert templates see Tutorial 0 - Accomplishing Elementary Tasks in VFC.
Your program should look like this:

3.Set the flowcoded Applet into export mode.
![]()
4.Press the save,
, button to Save and Export.
5.Since this is a Java Applet we must also create a host web page. To do this press the Create New FlowCode button,
.
6.In this new untitled.ins file lets modify the colors. This will help us to distinguish the HTML from the Java. Select from the menu Settings / File Color Scheme... , and set the background to a color different from the Java Applet.
7.In this new untitled.ins file, insert the HTML Java Link Template found in the Java templates directory.
8.Set your new HTML flowcode file into export mode.
![]()
9.Press the save,
, button to save and export the JavaApplet.html.
10.You workspace should look like:

11.In the Java Applet flowcode file press the compile button ,
.
12.You now should see the Java Applet class appear.

13.To see the applet in a web browser press the run button,
, from the HTML flowcode file.
14.To see the applet in the applet viewer press the 'Applet Viewer' button,
, from the Java Applet FlowCoder window.

That wasn't so bad. Lets make the applet do more.
![]()