How to create a java applet?

How do you write this program in java as an applet?

  • Random Colors, Sizes, and Locations Save as A7_Random.java Create an applet that draws an oval (filled in) and a rectangle (outline). Each time the applet is run it draws the shapes above at a different location and a different size and changes the color for each one. 1. Draw shapes a. Draw an oval filled in b. Draw a rectangle outline 2. Change sizes a. Generate random numbers for the size of the oval. b. Generate random numbers for the size of the rectangle. *Each time the applet is run the shapes should be different sizes. 3. Change location a. Generate random numbers for the location of the oval. b. Generate random numbers for the location of the rectangle. *Each time the applet is run the shapes should be different sizes and be in a different spot. 4. Create a new color a. Generate random numbers for the color of the oval. b. Generate random numbers for the color of the rectangle. c. *Generate numbers for red, green, and blue Each time the applet is run the shapes should be different sizes, be in a different location, and be a new color.

  • Answer:

    Ask your teacher for help.

adidfrea... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.