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
Related Q & A:
- How to connect to bluetooth device in Java?Best solution by Stack Overflow
- How do you pause a program until a button is pressed in JAVA?Best solution by Stack Overflow
- How to write a program to monitor the temperature of CPU?Best solution by Stack Overflow
- How to write XML file with Java and read it?Best solution by Stack Overflow
- How do you program using Java?Best solution by wikihow.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.