Hi.

I have a JFrame with a JLayeredPane. On the first layer there is a table, then above it there is black transparent layer that allows me options and what-not.

I animate the arrival of this transparent layer. However when I do this the panel seems to loose it's transparency, that is until I interact with the base layer, THEN I see through the transparent layer again.

Sometimes, when I start interacting with the textfield or button on the transparent level, it starts displaying pieces and bits of the lower layer on the Transparent layer.

Am I missing the need to repaint something or....I'm not even sure. Why is there this visual bug please?
7f251a6095bcf4b8ac58474a7efd69e698a461d5293ca0fbbac7cc085bfb1297a11b3b4e5cc6021d5ee4939d56ae22b9bce6d3179f4e706aa28014fd2198a943

Recommended Answers

All 2 Replies

GlassPane/JViewport(with custom RepaintManager) or JLayer (just the painting illusion, not real Component)

So how do I make this stop. I'm not sure I understand your post.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.