Assigning a Listener from a "parent" pane possible?

Im a swing Noob.

Here is what I have done.

I have created a pane that holds other panes. I will call the panes that are added to the main pain childPanes. (are this what people refer to aswidgets?). Anyway the child panes have buttons on them and what I want to do is some how be able to assign the parentPane a listener that listens for an event on the childPane.

(FYI the use of parent/child terminology is not used in the extends sense) I would say hiearchtical sense but I cant spel that.

I can get this to work by having a reference from the child to the parent and just passing the event to a method but doing that seems a bit uncomfortable (but yet simply).

It seems to me that this might be kinda basic. But I personally dont have enough exp to see it.

Thanks in advance

B.

[836 byte] By [braindamageda] at [2007-10-2 10:43:01]
# 1
Unfortunately being not very good at Java I can't really help you. I'm having a very similar problem though, and I'm very interested in the method you have currently described. Any chance you could run me through, or perhaps give me some example code of how you've done
theonlyskipa at 2007-7-13 2:52:28 > top of Java-index,Security,Event Handling...