As suggested in the other posts by me, have you looked at the java2d api ?
You can use Canvas/JFrame/Frame to draw the points. though Frame is a part of awt and you are better off with JFrame/Canvas for your requirement.
Please do go through basic code for java2d/awt/swing before trying out complex examples.
salvin francis wrote:As suggested in the other posts by me, have you looked at the java2d api ?
You can use Canvas/JFrame/Frame to draw the points. though Frame is a part of awt and you are better off with JFrame/Canvas for your requirement.
Please do go through basic code for java2d/awt/swing before trying out complex examples.
i have go through it, but i cannot find any info that can let me draw something on an image.....T.T Urgent ...
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
There's nothing special about drawing on an image. First you'd draw the image on the panel or frame, and then everything else on top of that. The Graphics (and Graphics2D) object that gets passed into your paintComponent method has methods to draw images and graphics primitives.