Help with button and mouse

hi, every one

my problem is how to write code for the following :

- just i create a Button on aToolBar and Panel in the main frame

when i press the button and go to the pane and click any where on the panel the mouse must draw string at (x , y) for mouse .

please tell me how to make it as i try many times but i can't do it

[356 byte] By [java4alla] at [2007-11-27 2:29:51]
# 1
Please post Swing questions in the Swing forum: http://forum.java.sun.com/forum.jspa?forumID=57
DrLaszloJamfa at 2007-7-12 2:43:16 > top of Java-index,Java Essentials,New To Java...