You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Thomas DeWeese <Th...@Kodak.com> on 2005/02/01 03:12:28 UTC

Re: SVG and JLayeredPane

Hi Jim,

    I would suggest trying to use the SwingSVGPrettyPrint class to
get and SVG 'dump' of your JLayeredPane.  Otherwise, I would look
at the src.jar that comes with the JDK distribution to see
what is going on at line 539 in JLayeredPane.java.


Snyder, Jim ( GE Transportation ) wrote:

> I was able to get Batik to generate an SVG text output using the 
> following algorithm (from the Batik website) on java components 
> such as a JPanel ( the this instance is of JPanel). 

> However when I apply the same algorithm (the this instance is of 
> MY_JLAYEREDPANE, which extends JLayeredPane) to a JLayeredPane I 
> get the following exception:
> 
> java.lang.NullPointerException
>  	at javax.swing.JLayeredPane.paint(JLayeredPane.java:539)


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org