Re: [Java-gnome-developer] Gnome icon retrieval
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2009-04-14 01:27:17
|
On Mon, 2009-04-13 at 14:13 +0200, LCID Fire wrote: > I'd like to > get the names of system icons so that I can load them into java. The stock icons are available a number of ways; the most common is to use the Image Widget constructor that takes a Stock: http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/Image.html#Image(org.gnome.gtk.Stock,%20org.gnome.gtk.IconSize) In day-to-day use, though, usually what you're doing is creating a Button or MenuItem, and those have constructors that not only pull the stock icon but also the appropriate label text, etc. http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/Button.html#Button(org.gnome.gtk.Stock) and http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/ImageMenuItem.html#ImageMenuItem(org.gnome.gtk.Stock) and most usefully, from Action via create*Item(). http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/Action.html#Action(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.gnome.gtk.Stock) AfC Sydney -- Andrew Frederick Cowie Operational Dynamics is an operations and engineering consultancy focusing on IT strategy, organizational architecture, systems review, and effective procedures for change management: enabling successful deployment of mission critical information technology in enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |