Example: specifying launch code
Before beginning the packaging process, you must specify how to launch the stand-alone program which is the result of the packaging process.
This example uses the application is DevelopChooser, which you created when completing the steps beginning in Example: Creating the application DevelopChooser.
Implementing the launching method
You can implement the methods in any order. This example begins with run, a public class method of DevelopChooser that helps define the interface. To implement run, do the following:
1. In the Transcript, select Manage Applications from the Tools menu to open an Application Manager.
2. Select DevelopChooser.
3. From the list of classes, select DevelopChooser.
4. Verify that the settings in the browser are for viewing public class methods.
5. From the Categories menu, select Add. A window opens, requesting a name for the category.
6. Type Run, then select OK.
7. Revise the template so it includes the following:
main
"Public - open the application launcher."
Chooser new open.
8. Save the method. If you have typed in the method text shown above, the method name open is displayed in the list of methods.
In the Application Browser, version the DevelopChooser class and DevelopChooser application.
 
Last modified date: 02/28/2019