Position of Mouse Click on Texture Graphics2D

hello,



I have a Graphics2D for my textures and i would like to know “where” is my cursor on this texture, when the mouse is pressed, dragged ; for adding some drawing.



I try to use this :

[java]new CollisionResults().getCollision(0).getContactPoint();[/java]

But it didn’t works like i want.



So I want the position (collision) of the mouse on my Graphics2D, but not in the world 3d.



An idea to help me ?



Thks