[Java-gnome-developer] StatusBar issue + 2 questions
Brought to you by:
afcowie
From: Fred B. <cha...@ma...> - 2004-10-25 02:48:37
|
Hello all I am using the 2.6 libs from debian unstable. I am using eclipse 3.0 for my IDE. Questions first: 1) I have created a Window with glade, and I am tying it in my java code via LibGlade. No problem thus far, except that I don't understand that example (http://cvs.gnome.org/viewcvs/java-gnome/libglade-java/doc/examples/glade/LibGladeTest.java?rev=1.8&view=markup) I have tried it in my own code, but with no success. I have to do something like the following to be able to do something with my widgets: gladeXml = new LibGlade("/home/fblaise/Glade/jgLDAP/jgldap.glade",this); cboExistingConn = (ComboBox)gladeXml.getWidget("cboExistingConn"); If I don't getWidget() my object like this second line shows, despite the fact my widget has the same name in Glade and in my code, I just get a NullPointerException when I invoke anything on it. If anyone can shade some light.. I guess it'd very cool to not manually map each widget, and let LibGlade do it for you. 2) My glade project includes several windows. All my windows pop up when I start the program. Is there anyway to prevent that? 3) The StatusBar problem: When I try to map my status bar like this: statbar1 = (StatusBar)gladeXml.getWidget("statbar1"); It tells me this: could not create widget: org.gnu.gtk.Statusbar Thanks :) fred |