draw an arrow on image

hello

what is the code to draw circle.arrow and a line on an image.

[80 byte] By [mahesh.ba] at [2007-11-27 10:21:18]
# 1

graphics, drawline ^_^

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html

Message was edited by:

Yannix

Yannixa at 2007-7-28 17:09:11 > top of Java-index,Java Essentials,Java Programming...
# 2

thank u for ur reply but arrow must be drawn dynamically on the image when we press a button

private void DrawArrow(ActionEvent e)

{

imagePanel.setPen(ImagePanel.ARROW);

}

public void setPen(int pen) {

this.pen = pen;

}

this is the code i wrote i could draw the arrow on the image but is not staying where it is drawn.the moment i draw an arrow it is moving somewhere on the image . can u please check it.

mahesh.ba at 2007-7-28 17:09:11 > top of Java-index,Java Essentials,Java Programming...
# 3

sorry....wrong question

Message was edited by:

aname

anamea at 2007-7-28 17:09:11 > top of Java-index,Java Essentials,Java Programming...