AlistairMonkeyFinger
Programmer
I'm trying to create a very simple chart, so far i've got it to plot small rectangles onto a JPanel. What i want is when the user puts the mouse over a point then it can display any metadata about the point in a separate box.
So my question is, how do i detect if the mouse has gone over a point (rectangle) on a JPanel ? I guess there is a listener i should add, mouse listener maybe ? When i've added a listener, what do i do ?
Thanks in advance
So my question is, how do i detect if the mouse has gone over a point (rectangle) on a JPanel ? I guess there is a listener i should add, mouse listener maybe ? When i've added a listener, what do i do ?
Thanks in advance