On Sat, 4 Sep 2021 21:35:32 GMT, Sergey Bylokhov <[email protected]> wrote:
> Calling "platformWindow.setOpaque(!isTranslucent());" is equvivalent of > calling these three methods: > > ``` > setOpaque(getTarget().isOpaque()); > applyShape(Region.getInstance(shape, null)); > peer.setTextured(IS(TEXTURED, styleBits)); > ``` > > All of them are executed before "platformWindow.setVisible(visible);" why do > we need one more call to trigger updateOpaque? The flickering is only noticed with some components and adding setOpaque (that sets correct background color inside) definitely helps. I'll check more carefully all the paths. ------------- PR: https://git.openjdk.java.net/jdk/pull/5373
