Hi all,
I am trying to make my button green. Can someone please tell me what am I
doing wrong ?
import org.gnome.gdk.RGBA;
import org.gnome.gtk.Button;
import org.gnome.gtk.Gtk;
import org.gnome.gtk.StateFlags;
import org.gnome.gtk.Window;
public class Foo
{
public static void main(String[] args) {
Window window;
Gtk.init(args);
window = new Window();
Button button = new Button("Foo");
button.overrideBackground(StateFlags.NORMAL, RGBA.GREEN);
window.add(button);
window.showAll();
Gtk.main();
}
}
Thanks,
Nate
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
java-gnome-developer mailing list
java-gnome-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/java-gnome-developer