<shameonme> Found out what I was doing wrong </shameonme>
Number 3 works if you do: canvas.setBackground(new Color(255,255,255,0))
So yes, it is possible to layer different canvasses over each other !

Harm.

>>>>> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes:

GWJ>  3. There have been a few questions in the past on this list about
GWJ>     layering JSVGCanvas objects and displaying one on top of
another.
GWJ>     a. I don't know if anyone has ever gotten this approach to
GWJ>        work.


>>>>> "TD" == Thomas Deweese <[EMAIL PROTECTED]> writes:

TD>  I've never tried it directly but I do know that transparent
backgrounds work for the JSVGCanvas and this is probably the most
important piece.


I've tried loading up multiple canvases in a JLayeredPane component. I
can see the components overlap (I have about 5 of them) but they are not
transparent.

I can't seem to get them transparent. This is what I tried:
1. setOpaque(false)     results in a white background for the canvas.
2. setBackground(null)  (with or without setting opaque to false)
results in a gray background (although not transparent)
3. setBackground(new Color(255,255,255,255)) (with or without setting
opaque to false)        results in a white background

I must be doing something wrong.

Harm


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to