S
steve_marjoribanks
I would like to be able to draw a number of polygons as a
representative diagram of some coordinate data on a JPanel and then
when the mouse is moved over one of the polygons (into the area it
bounds) generate some event so that information in another JPanel is
updated to show the data about that polygon.
of doing this? I guess I could use the mouse x,y coordinates to roughly
work out where the pointer is in relation to the objects on the JPanel
but is there an easier, more obvious way that I am completely unaware
of?!
Thanks
Steve
representative diagram of some coordinate data on a JPanel and then
when the mouse is moved over one of the polygons (into the area it
bounds) generate some event so that information in another JPanel is
updated to show the data about that polygon.
Components themseves, not items within them. Is there any possible wayFrom what I've read, Swing mouse events can only be applied to
of doing this? I guess I could use the mouse x,y coordinates to roughly
work out where the pointer is in relation to the objects on the JPanel
but is there an easier, more obvious way that I am completely unaware
of?!
Thanks
Steve