R
Ramon
I am writing a simple Swing application that has a
JToolbar which can be docked against the menu bar or
floating around.
A problem occurs when the user is rubberbanding.
When the JToolbar is not docked, the coordinates work
as they should and the dotted rectangle is drawn under
the mouse pointer. When the JToolbar is docked, however,
the rectangular rubberband shows up several pixels
above the mouse cursor.
I guess I need to have some event captured when the
toolbar is [un]docked and compensate the coordinates
with an appropriate offset.
What event(s) should I have listeners for?
TIA,
-Ramon
JToolbar which can be docked against the menu bar or
floating around.
A problem occurs when the user is rubberbanding.
When the JToolbar is not docked, the coordinates work
as they should and the dotted rectangle is drawn under
the mouse pointer. When the JToolbar is docked, however,
the rectangular rubberband shows up several pixels
above the mouse cursor.
I guess I need to have some event captured when the
toolbar is [un]docked and compensate the coordinates
with an appropriate offset.
What event(s) should I have listeners for?
TIA,
-Ramon