Java Graphics Example

Passing Parameters Example

Write the Java Code to read in three parameters passed from the web-page that includes the applet. The first parameter is the red value of the background color, the second the green value of the background color, and the last the blue value of the background color. Using these values fill in the background region of the applet to this color. Next draw an oval and print a message inside the oval. Solution


Here is the applet:

Need Java Enabled Browser