My question is whether the use of setOpaque(false)
, which I've come to use with JPanel
to layout UI in Swing, impacts painting performance more than keeping everything opaque (where isOpaque()
returns true
).
I'm not very familiar with how Swing renders UI but I would guess that if a JComponent is not opaque it would be harder to render what's behind the component then to simply paint an opaque background on the component.