Operations on Java Swing
Posted
by gustavo
on Stack Overflow
See other posts from Stack Overflow
or by gustavo
Published on 2010-06-17T17:10:29Z
Indexed on
2010/06/17
17:13 UTC
Read the original article
Hit count: 149
In my project,I will get the coordinates of some points from an XML file,and create some visual components using this information ? I am planning to give these components to a Java swing frame or panel. However,The users are supposed to click on the figure(which I will construct using Graphics 2d libraries) and select two points and give a label to the points between those two points ? How can i get the clicks clicked on JFrame or JPanel(i.e events for this kind of actions) ?
© Stack Overflow or respective owner