I haven't try yet, because JSVGCanvas is JComponent, I think you can use jcomponent.setCursor(cursor)
Hi Tonny,
This will work, but if the user cursors over a link it will change to the hand, but when they leave the link it will (I believe) be reset to the default cursor.
This should be handled by the batik.bridge.CursorManager class. Right now it appears to always use DEFAULT_CURSOR this should ideally be controllable with a get/set method. Ideally setting the default cursor should take immediate effect.
For now you will either need to accept Tonny's suggestion or implement the 'proper' behavior in CursorManager (or a subclass there of).
I'm trying to change the default background cursor of a Batik applet whenever the program goes into a certain mode that is determined at runtime. E.g. if the user selects a pan button, I want Cursor.CROSSHAIR_CURSOR to be the new default cursor that appears when hovering over the SVG file, even _without_ pressing the mouse button. The other behavior shall remain unaffected, i.e. when the user hovers over links with the mouse, a hand cursor (Cursor.HAND_CURSOR) should still appear. I just want to be able to exchange the "default background cursor" of the JSVGCanvas dynamically. Does anyone know how to do that?
Regards Tonny Kohar
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]