Question: (java) Write an applet that will draw random colored (from an array of Color objects): a. random thick lines - use Line2D objects with rounded

(java) Write an applet that will draw random colored (from an array of Color objects): a. random thick lines - use Line2D objects with rounded edges. Set it up like a horizontal bar chart with a series of lines going from left to right. The x coordinate will be starting from the left edge, the y coordinate will increment a set amount, and the width and height will be random numbers (but keep the height on the chart (not higher than the y's increment) and the width on the applet (you can getSize().width for your applet's width). Use a for loop to loop through all the drawn lines with the loop variable being the y coordinate that will increment the lines vertically.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!