![]() |
![]() |
![]() |
When you start an applet, you can pass parameters to it, changing the way it behaves. When you run an applet in the IDE, these parameters are set on the Program or Applet page of the applet's Properties notebook.
To set up parameters for the applet:
To add another blank row to the Parameters table, click the New button. To remove a parameter, select a field in its row and click the Remove button.
You can access information about an applet's parameters at run time by calling the getParameterInfo() method. It returns a two-dimensional array of String objects that contains each parameter name, type, and description.