I have a JLayeredPane with a number of layers. On a low layer a bunch of
polygons are drawn. On a higher layer, there is a JPanel (with
setOpaque(false)) where JLabels are added. The labels are added just fine,
and I can see them show up above the drawn polygons. The problem is that
whenever something new gets painted on the lower level, it paints _over_ the
labels. The labels seem to disappear. However, if I Alt-Tab out of the
application, and the Alt-Tab back in, the labels are back. What could
possibly be going on?
Andrew Thompson - 28 Jun 2004 15:29 GMT
> What could possibly be going on?
Line 86, column 23. Change the '.' to ','.
If that does not fix it, try..
<http://www.physci.org/codes/sscce.jsp>

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
YESHIVA UNIV - 28 Jun 2004 16:01 GMT
I know, I know, but the problem is that the code for the polygon drawing is
so large that I wouldn't know what to post. I was just wondering whether
anyone has encountered anything similar before, when one layer in a
JLayeredPane overwrites ones which are higher up.