dcsimg
how can i draw circle or line on frame
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   shai_Avnon
Posted On:   Thursday, March 29, 2001 05:16 AM

i need to know how to use Graphics on application , not on applet and without extending Applet in any form.

Re: how can i draw circle or line on frame

Posted By:   Sandip_Chitale  
Posted On:   Thursday, March 29, 2001 10:33 PM

In the paint method of a Frame's subclass do -

public void paint(Graphics g) {
g.drawCircle(x, y, w, h);
g.drawLine(x1, y1, x2, y2);
}
About | Sitemap | Contact