[Java-gnome-developer] Re: error: java.lang.reflect.InvocationTargetException: ListenerDelegate.cre
Brought to you by:
afcowie
From: Jonathon L. <j...@co...> - 2005-03-19 00:10:51
|
All the runExample examples work, so I presume the problem is in libGlade. glade file: <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkWindow" id="window1"> <property name="visible">True</property> <property name="title" translatable="yes">window1</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">False</property> <property name="skip_pager_hint">False</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <child> <widget class="GtkButton" id="button"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">button</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_clicked" last_modification_time="Sat, 19 Mar 2005 00:08:48 GMT"/> </widget> </child> </widget> </glade-interface> source file: package test; import org.gnu.glade.LibGlade; import org.gnu.gtk.Gtk; public class Test { public static void main(String[] args) { Gtk.init(args); Test turtle = new Test(); Gtk.main(); } public Test() { try { LibGlade moo = new LibGlade("/home/j/Projects/tmp/tmp.glade", this); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void on_button_click() { System.out.println("click"); } } > Could you please send a copy of the java code and glade > file. I would be happy to take a look at this and help > with a resolution. |