0% found this document useful (0 votes)
2 views2 pages

Java 29

The document describes a practical assignment for developing a Java applet program that implements various shapes such as lines, rectangles, circles, ellipses, arcs, and polygons. The program includes code that utilizes the Graphics class to draw and fill shapes. The assignment is associated with a student named Abhay Manik Uchit, Roll No. 56.

Uploaded by

permanchannel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Java 29

The document describes a practical assignment for developing a Java applet program that implements various shapes such as lines, rectangles, circles, ellipses, arcs, and polygons. The program includes code that utilizes the Graphics class to draw and fill shapes. The assignment is associated with a student named Abhay Manik Uchit, Roll No. 56.

Uploaded by

permanchannel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Practical No.

: 29
Practical Name : Develop program for implement the shapes using applet like lines
and rectangle,circle and ellipse,arcs,polygon with fill polygon method.
Roll No. : 56
Student Name: Abhay Manik Uchit

-
-
Program:
import [Link].*; import
[Link].*;
public class Pr29 extends Applet
{
public void paint(Graphics g)
{
[Link]([Link]);
//Color c=new Color(150,20,100);
//[Link](c);
[Link](20,40,250,250)
; [Link](50,100,50,70);
[Link](185,100,50,70);
[Link](138,160,138,210);
[Link](138,210,155,210);
[Link](148,106,100,100,180,180);
}
}
/*
<html>
<applet code=[Link] height=300 width=300>
</applet>
</html> */
Output :

You might also like