An Applet With Parms
Base Applet (paint can be invoked by scrolling up or down, reloading page):
getParameterInfo()
- Returns information about the parameters that are understood by this applet.
Integer class
- is in java.lang package
- parseInt(String s) - Parses the string argument as a signed decimal integer.
- analogies to java.lang.Integer:
- java.lang.Double
- java.lang.Float
- java.lang.Long
Pass parameter color (#FF0000) to AppletSubClass
Pass parameters (0,160,110) to AppletSubClass1 and display getParameterInfo()
|