Perhaps the delay is because it is being rendered every time you switch. To confirm this I would step through the code in a debugger like that in Eclipse. Then you will really know.
Maybe there is a way to stop this happening and perhaps there is a way to cache the resultant bitmap or the state of the Graphics 2D canvas and display that if there hasn't been any change. That could be faster. You might want to look at thread: http://www.nabble.com/Using-multiple-JSVGCanvas%27-in-a-CardLayout---Heap-Overflow-to17018867.html This is not the same problem as yours although they are using a similar part of batik to do a similar job so it might give you some inspiration. -- View this message in context: http://www.nabble.com/SVG-in-JtabbedPane-tp17346317p17425141.html Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
