I made for my game a simple JComponent extended to Sprite that can receive new data throughout the Graphics object. If you thereafter impl. a MouseListener that'd change the Graphics area it'd be possible to have som'th' similar to your request, wouldn't it be?

Try picking to get the triangle you're pointing at, then somehow get the precise position on this triangle, then what coordinates in the texture match it.In any case, this is probably pretty advanced stuff

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org