Write an applet to demonstrate draw3DRect() and fill3DRect() method

0
723
Want create site? Find Free WordPress Themes and plugins.
 /*Write an applet to demonstrate draw3DRect() and fill3DRect() method.*/
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.awt.Color;
import java.awt.Graphics;
/*
<applet code="A.class" width=400 height=450></applet>
*/ 
public class A extends Applet
{
 
        public void paint(Graphics g)
		{
                g.setColor(Color.red);
                g.draw3DRect(10,10,50,100,true);
                g.draw3DRect(100,100,50,50,true);
                g.setColor(Color.orange);
                g.fill3DRect(10,150,50,100,true);
                g.fill3DRect(100,200,50,50,true);  
        }
}
Did you find apk for android? You can find new Free Android Games and apps.

LEAVE A REPLY