A
alex_us01
hello,
Is it possible to put a swing component on top of another and
make at least the one on the top transparent so that the
contents of both are visible?
My specific problem is that I am using a package (JUNG) that
knows how to draw graphs (vertices and edges, etc.),
but I want to draw rectangles around groups of vertices,
and add text over or under the rectangles (via JLabels).
It is not possible to put these directly in JUNG's GraphDraw
Swing component. Therefore, I am looking for a way to put my
components separately on top of it visually and make them transparent
so that the contents of the underlying GraphDraw component are visible.
thanks,
alex
Is it possible to put a swing component on top of another and
make at least the one on the top transparent so that the
contents of both are visible?
My specific problem is that I am using a package (JUNG) that
knows how to draw graphs (vertices and edges, etc.),
but I want to draw rectangles around groups of vertices,
and add text over or under the rectangles (via JLabels).
It is not possible to put these directly in JUNG's GraphDraw
Swing component. Therefore, I am looking for a way to put my
components separately on top of it visually and make them transparent
so that the contents of the underlying GraphDraw component are visible.
thanks,
alex