Re: [Java-gnome-developer] Glade and org.gnome.gtk.Builder
Brought to you by:
afcowie
From: Jason M. <agr...@gm...> - 2012-09-17 01:11:45
|
I am making it work doing some funny stuff on Ubuntu 12.04 with 4.1.2 from the java-gnome ppa. I can not get Designer.java to work with simple.ui sample. http://research.operationaldynamics.com/bzr/java-gnome/mainline/tests/prototype/Designer.java agrellum@Michelle:~/TESTING$ javac Designer.java agrellum@Michelle:~/TESTING$ java Designer Exception in thread "main" java.text.ParseException: Invalid object type `GtkLabel' at org.gnome.gtk.Builder.addFromFile(Builder.java:107) at Designer.setupUserInterface(Designer.java:46) at Designer.main(Designer.java:80) agrellum@Michelle:~/TESTING$ I can then pre-define Label() or whatever widget before calling builder and it works. And in my case, I have done some glade files with hundreds of widgets. As long as define say one widget type of say a Spinbutton then it will load the other 50 spinbuttons fine. |