>>>>> "GW" == Gavin Walker <[EMAIL PROTECTED]> writes:
GW> I think I have a solution for the tool tip bug I
GW> indicated earlier (which fails with both 1.4.0 & 1.4.1).
Thanks for tracking this down...
[...]
GW> Why the problem only occurs when ALWAYS_DYNAMIC is set I do not
GW> know. It is possible that there is a race condition between the
GW> event that exits one SVG object and the event that enters the next
GW> SVG object. Setting ALWAYS_DYNAMIC could alter the race condition
GW> enough to fail. If that is the case then my code change is just a
GW> work around and doesn't really fix the problem.
I suspect that the source of the problem is that we may be
calling setToolTipText in a thread other than the AWT Event thread.
I would test this myself (but as I said 1.4 don't work well for me),
could you try the following?
Given the information you have provided I feel pretty good that
this will work.
import java.awt.EventQueue;
[...]
/* from JSVGCanvas.ToolTipModifier */
public void handleEvent(Event evt){
final String tt = toolTip;
EventQueue.invokeLater(new Runnable() {
public void run() {
setToolTipText(tt);
}});
[...]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]