You might find this older post about component transparencies helpful...includes a great example from Cameron. I'd suggest reading the entire thread as it contains many insights
http://batik.2283329.n4.nabble.com/JSVGCanvas-setOpaque-method-not-working-td2976247.html Hope that helps! On Tue, Aug 30, 2011 at 8:48 AM, dieend <mail.die...@gmail.com> wrote: > have SVG file that actually empty, that have no element, yet. I will > manipulate it in the java code by adding element. The SVG file will be > inserted in a scrollpane. The problem is even the SVG file actually empty, > the Scrollpane not transparent even if I have already set it transparent. > > Here is the SVG file (I got it from client): > > > > and here is the scroll pane part (canvasDiagram is the SVGCanvas). > > > > The scrollpane is not transparent but white. I tried to insert the scroll > pane content with transparent jPanel and its work so I believe the white > content because of the canvasDiagram. Can you help me to make the empty > part > of canvasDiagram really transparent? > > -- > View this message in context: > http://batik.2283329.n4.nabble.com/Make-Transparent-SVG-Transparent-in-JSVGCanvas-tp3778622p3778622.html > Sent from the Batik - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org > >