Hi. Thanks for your response, Jan.
Lolling, Jan wrote:
/**They've changed CanvasSVGListener recently to take the canvas in the constructor. Easy fix.
* this method will be called from constructor of JGVTComponent
*/
protected Listener createListener() {
return new ScrollableCanvasSVGListener();
}
Something I still don't understand though, here...
/**I don't see who's supposed to call the setMySize method. :-/
* This method avoid the problem, that the original methode in CanvasSVGListener * use pack() methode to rearrange the Swing componentes
*/
protected class ScrollableCanvasSVGListener extends CanvasSVGListener {
public void setMySize(Dimension d) { setPreferredSize(d); invalidate(); Container p = getParent(); while (p != null) { if (p instanceof Window) { Window w = (Window) p; w.validate(); // im Orignial wurde hier pack() aufgerufen break; } p = p.getParent(); } }
}
Daniel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
