Re: [Java-gnome-developer] using inherited methods in glade signal handlers
Brought to you by:
afcowie
From: Lars W. <la...@di...> - 2006-01-04 13:59:29
|
Hello again, since nobody answered to my previous question, let me try to ask it again a little bit different and perhaps more clearly. Let's say I have a class Foo: public class Foo { public void doFoo() { System.out.println("Foo!"); } } Then I have another class called Bar extending Foo: public class Bar extends Foo { public Bar() { try { ui = new LibGlade("UI.glade", this); } catch(Exception e) { e.printStackTrace(); } } } Shouldn't it now be possible for me to specify the method doFoo() as a signal handler in UI.glade (e.g. for a button click)? Currently, when I try to do something like this (or at least something similar), I get an IllegalAccessException. Regards, Lars |