Hi,
I used svgScrollPane to draw a large drawing. However, the mouse scroll
didn't work out.
I think I missed setting scrollListener.
When I went over Batik API, I found
*JSVGScrollPane.**createScrollListener<http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/swing/JSVGScrollPane.html#createScrollListener%28%29>
*(). Is it correct function making scrollbar enable?
Another problem is that I cannot import "
org.apache.batik.swing.JSVGScrollPane.ScrollListener". Am I using an old
Batik version?
If there is an alternative solution I can use mouse scroll, please let me
know.

This is my sample code/
========================================================
JSVGScrollPane svgScrollPane = new JSVGScrollPane(canvas);
//  svgScrollPane.createScrollListener();  ????????
panel.add(svgScrollPane);
=========================================================

Thank you in advance.

Reply via email to