Question: Java Programming 2 please put the answer copyable please I need different answer than the old answer her in chegg 4) Here's an example of
4) Here's an example of an applet that a lamp with a spotted shade. Below has the complete code for the lamp. Compile and run this program. Show and the output. import java.awt.*; public class Lamp extends java.applet.Applet public void paint(Graphics g ) ? // the lamp platform g. fillRect (0,250,290,290); // the base of the lamp g.drawLine (125,250,125,160) : g.drawLine (175,250,175,160) : I/ the lamp shade, top and bottom edges g.drawArc(85,157,130,50,-65,312); g.drawArc(85,87,130,50,62,58); // lamp shade, sides g.drawline (85,177,119,89) : g.drawLine (215,177,181,89): // dots on the shade g.fillArc( 78,120,40,40,63,174)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
