The New Applet SmartGuide creates an applet or application to your specifications without you having to write any Java code. You can also have it create some sample code in the applet, which you can run to see quick results. Except where differences between applets and applications are specified, the term "applet" refers to both applets and applications.
The sample applet displays the words "Welcome to VisualAge" in a plain window. If the applet is threaded, the words scroll across the window.
To create the sample applet:
At this point, you can click Finish, and leave the remaining
SmartGuide settings as they are. The SmartGuide creates the applet in the project
and package that you specified. When you browse the package, the applet will have a
symbol () next to it that shows
that it can be run.
To run the applet in the applet viewer, select Run, In applet viewer from the applet's pop-up menu. If you generated the main method, you can also run it as an application by selecting Run, Run main from the pop-up menu.
Making Changes to the Generated Applet
If you click on the applet program element in the Workbench, the project browser,
or the package browser, the Source pane shows the applet declaration and its fields.
You can change the default value of the fields to change the way the applet appears.
For example, change the font from TimesRoman to Helvetica, and the text string from "Welcome to VisualAge" to "This is my applet." Save the changes by typing Ctrl+S. Run the applet again to see the changes.
You can also make changes to an applet while it is running. To make run-time changes to the sample applet:
Creating an Applet or Application
Running an Applet from the IDE
Running an Application from the IDE
Making Run-Time Changes to an Applet