Re: [Java-gnome-developer] error defining signals with glade
Brought to you by:
afcowie
From: Jeff M. <ku...@gm...> - 2005-05-27 22:51:09
|
On 5/27/05, Ol=E1h G=E1bor <ga...@cw...> wrote: > the error says: > java.lang.reflect.InvocationTargetException: ListenerDelegate.create > failure The problem here is that you have defined a callback=20 (on_button_execute_clicked) but this method doesn't exist in your example. This is not a Java-GNOME bug. If you add this method you will see that it works fine. >=20 > i receive this with sun's javavm 1.5 and gij-4, and i receive this for > each signal i have defined... >=20 > anyway, i am on ubuntu hoary, versions libgtk2-java/libglade-java: > 2.8.3-2 >=20 > Sourcecode: >=20 > public class HotplugManager { >=20 > LibGlade glade; >=20 > public HotplugManager() throws GladeXMLException, > FileNotFoundException, > IOException { > glade =3D new LibGlade("data/hotplugmanager.glade", this)= ; > } >=20 > public static void main(String[] args) { >=20 > HotplugManager hotplugman; >=20 > Gtk.init(args); > try { > hotplugman =3D new HotplugManager(); > } catch(Exception e) { > e.printStackTrace(); > } > Gtk.main(); >=20 > } > } >=20 > as you can see, i am not trying to catch the signal it is only defined > in the glade file: > <widget class=3D"GtkButton" id=3D"button_execute"> > <property name=3D"visible">True</property> > <property name=3D"can_default">True</property> > <property name=3D"can_focus">True</property> > <property name=3D"label">gtk-execute</property> > <property name=3D"use_stock">True</property> > <property name=3D"relief">GTK_RELIEF_NORMAL</property> > <property name=3D"focus_on_click">True</property> > <signal name=3D"clicked" handler=3D"on_button_execute_c= licked" > last_modification_time=3D"Fri, 27 May 2005 20:56:57 GMT"/> > </widget> >=20 > does anyone have any ideas? > thanks in advance > cheers > gaboro >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22= 005 > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer >=20 --=20 Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |