hii..
i have a problem with mouse clicked.
i have an applet with some images drawn on it and in that i have inserted one textarea.
if i doubleclick on the textarea the text which is there in that area sholud be cleared. so the problem is to get the coordinates.
now to get the co-ordinates of textarea in applet it is starting from zero position only. i mean if i'm using
PMx=me.getX();P My=me.getY() i'm getting the coordinate of text area i.e, (0,543)
but i can get the initial co-ordinates of text area as textarea.getX() .
My problem is when i click on the textarea i want the co-ordinates of the applet where the mouse is clicked.
Thank u.
i have a problem with mouse clicked.
i have an applet with some images drawn on it and in that i have inserted one textarea.
if i doubleclick on the textarea the text which is there in that area sholud be cleared. so the problem is to get the coordinates.
now to get the co-ordinates of textarea in applet it is starting from zero position only. i mean if i'm using
PMx=me.getX();P My=me.getY() i'm getting the coordinate of text area i.e, (0,543)
but i can get the initial co-ordinates of text area as textarea.getX() .
My problem is when i click on the textarea i want the co-ordinates of the applet where the mouse is clicked.
Thank u.