Re: [Java-gnome-developer] Glade and using widgets
Brought to you by:
afcowie
From: Mark H. <mh...@ca...> - 2003-12-14 14:20:46
|
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. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |