JTextArea background color under GTK Look and Feel
I have a JTextArea that I'm using sort of like a JLabel that wraps text. It's disabled and non-editable. In its updateUI() method, after calling super.updateUI(), I call UIManager.getColor("Panel.background") to get the background color.
In most LAFs, this does what I want, but in the GTK LAF, this returns null. So I call getParent().getBackground() and that returns RGB:214/214/214, which is the light grey that GTK uses for panels. I explicitly set this as the background in the JTextArea, but it always appears white. I've even tried every possible combination of the editable, enabled and opaque properties, but nothing seems to work. I've used debugging output to verify just before the ancestor JDialog is displayed that the JTextArea's background is 214/214/214.
Does anyone have any idea how I can work around this? This is the new GTK LAF in JDK 1.4.2 that I'm referring to.