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

Java Graphics Class Drawing Example

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

Java Graphics Class Drawing Example

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

PROGRAM : 11

11. Program to implement graphics class draw (line, rectangle, fill rectangle, circle,
oval).

import [Link].*;
import [Link].*;
public class Myapplet extends Applet
{
public void paint(Graphics g)
{
[Link](50,50,150,150);
[Link](100,100,200,200);
[Link]([Link]);
[Link](200,200,150,150);
[Link]([Link]);
[Link](new Font("arial",[Link],50));
[Link]("RG",25,529);
}
}
/*
<applet code = "[Link]" width = "500" height = "600">
</applet>

*/
OUTPUT :

You might also like