Re: [Java-gnome-developer] Creating custom widgets
Brought to you by:
afcowie
From: Alexey T. <a_t...@ma...> - 2008-03-01 20:50:15
|
> Well, I have no idea what JLabel does or doesn't do, but in GTK you > use > Pango markup to add emphasis to what would otherwise be ordinary text > in > a Label or a CellRendererText. See > http://library.gnome.org/devel/pango/stable/PangoMarkupFormat.html or > http://www.pygtk.org/pygtk2reference/pango-markup-language.html > > and use > http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/Label.html#setUseMarkup(boolean) or http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/CellRendererText.html#setMarkup(org.gnome.gtk.DataColumnString) > as appropriate. > Thank you for answer. It works. And what about image and text in the same cell? See gnome-system-monitor for example. And what about "lazy" models for trees and tables? I can give an example with Swing objects. |