Swing transparent background not being repainted
问题 I have a problem using transparent backgrounds in Swing. There are a lot of artefacts produced as swing is not repainting changed regions. As far as I can tell there are 2 out-of-the-box ways to use transparent backgrounds: an opaque component with transparent color set as background (left txt field) Problem : the transparent part of the background is never refreshed -> Artefacts. an non-opaque component with transparent color set as background (right txt field) Problem : background is not