[java-gnome-hackers] What is the simplest way to change widget background?
Brought to you by:
afcowie
From: Tom B. <Tom...@Su...> - 2003-03-07 21:47:36
|
I have a Label whose background I'd like to be the same color as the background of other text widgets (white, on my system). What's the simplest way to set it? I've tried setBackgroundColor, setTextColor, and setBaseColor (all for all standard states) without any effect. I was even considering a Pango markup string, but realized that it would only change the background of the text, not the whole widget. The widget is defined by a Glade file, but I can't find how to set the color there, either. Any help would be appreciated. I can't use a read-only TextView because TextBuffer.setText leaks Strings and char arrays and I haven't figured out why. Tom |