When using a JLabel, I can get it to be transparent by doing:
label.setOpaque(true);
label.setBackground(new java.awt.Color(r, g, b, a));
This all works as expected unless the label itself contains html (for example, for a multi-line label:
label.setText("<html>Something on line 1<br>And on line 2</html>");
When encountering a label with html within it, the background for the section that contains text will remain solid. If the label itself is sized larger with resizing off, I can see the transparency is working correctly all around the area containing the text.
Does anyone have an idea on how to resolve this issue, or is some more information necessary?