Re: [Java-gnome-developer] Glade and using widgets
Brought to you by:
afcowie
From: Alex M. <ale...@gl...> - 2003-12-15 08:57:43
|
excellent, the problem was the libglade line. I didn´t know how to use the glade elements in java. Great!!!! Thanks a lot. On Sun, 14 Dec 2003 14:20:41 +0000, "Mark Howard" <mh...@ca...> said: > Have a field for the About class: > private About about; > Then set this field after you have loaded your glade file: > > > libglade = new LibGlade(GLADE_FILE, this); > about = (About) libglade.getWidget("nameOfAboutWidget"); > > > > public void on_button3_clicked(){ > > System.out.println("button 3 pressed"); > about.showAll(); > > } > > BTW: the on_button3_clicked is just a template added by glade - I'd > recommend changing these to something more Java-like. e.g. > onButtonThreeClick. yes, i was only having contact with glade :-). -- Alex Moreno |