Re: [Java-gnome-developer] glade event problem and glade java examples wanted
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-02-11 15:18:49
|
First of all, thanks for the feedback. I tried here the HelloWorldGlade using java-gnome from CVS and, indeed, got that problem you mentioned (java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure). When running it with an older java-gnome i don't get the problem... got any idea, Jeff? Anyways, i'll see if i can investigate that problem. So you want some bigger examples... hmmm, the libglade module comes with some examples under the 'doc' dir, have you taken a look at them? Try opening the file 'gtk.glade' inside the Glade tool. There is also some apps written with JG; some of them might use Glade: http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/JavaGnomeApplications Cheers, J.V. --- Michael Salcher <mic...@gm...> escreveu: > hi > > i installed java-gnome today and wanted to try it out with glade. i compiled > and ran the HelloWorldGlade example from: > > http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/JavaGnomeHelloWorld#HelloWorldGlade > > The gui shows but the events don't work (clicking on the button does not do > anything, and closing the window does not terminate the application either). > when i launch the application the following message appears on the command > line twice (i suppose once for the button event and once for the window > event): > > java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure > > does anyone have any idea to why this happens and how to fix it? > and does anyone know of a / have a bigger / better example of how to use > glade with java-gome (on how to access widget properties and to handle > events)? > > also the the jgo.sh script on the the java-gnome.sf.net website should > probably mention that its last line: > > ${JAVA} -classpath > ${JG_JARS}gtk2.4.jar:${JG_JARS}gnome2.8.jar:${JG_JARS}glade2.4.jar:${JG_JARS}gconf2.8.jar:${CLASSPATH} > $@ > > might need modifications regarding the version numbers of jar files. it took > me hours to figure out why my java-gnome installation didn't work. maybe on > of the website maintainers reads this email and can mention that. > > thanks > michael salcher __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ |