Re: [Java-gnome-developer] StatusBar issue + 2 questions
Brought to you by:
afcowie
From: Fred B. <cha...@ma...> - 2004-10-25 22:40:38
|
I think it works as design. The callbacks I define in Glade are brought on when I 'new LibGlade()'. However, from the example below, if i was to do a cboExistingConn.getActive() without prior doing a getWidget() on the ComboBox, then it would fail with a NullPointerException. So, I think this is the way it should be? Thanks fred On Mon, 2004-10-25 at 19:50 +0100, Mark Howard wrote: > On Sun, Oct 24, 2004 at 09:49:07PM -0500, Fred Blaise wrote: > > 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"); > > I'm not quite sure what you mean by this? Are you saying that the example > doesn't work unless you have a call to getWidget in the code (even if you don't > use it)? > |