Hi Thomas,
  I  have noticed this behaviour also (really annoying when
an SVG script creates a window).  Preliminary testing indicates
it indeed only occurs under JDK 1.4.  However I don't think the
tool tip changes caused it.  I had this problem before we solved
the tooltip problem.  Also if the SVG document does not contain
tooltips (so no ToolTipModifier classes are created) this problem
still occurs.

  I just took a quick flick through the source code.  Thierry added
a change to org/apache/batik/swing/gvt/JGVTComponent.java in June,
essentially grabbing the focus on mouse enter.  When I regressed that
file to version 1.27 (before the change) the problem when away.  The
default MSWindows behaviour on focus change is to bring the window to
the front.  You might want to talk to Thierry about it.

  On a pedantic note "requestFocus()" is now considered bad form in
Java (according to the Java 1.4 doco at least).  "requestFocusInWindow()"
is preferred.  When I added this line to version 1.27 where the 
requestFocus() was the bug was still fixed.  On the down side the method
mostly returned "false", i.e. the focus request was denied.
 

  Oh, line 918 of JGVTComponent.java (in version 1.27) or in the 
mouseEntered() method.

Gavin Walker

[EMAIL PROTECTED]                        Computer Scientist
CSIRO Mathematical and Information Sciences  Internet Marketplaces
GPO Box 664                                  tel: +61 2 6216 7030
CANBERRA  ACT  2601   AUSTRALIA              fax: +61 2 6216 7111


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to