Receiving events from an inner class

Hello,

I have two classes: ClassA and ClassB. Within ClassB, I have an inner class, InnerB.

InnerB is a JCheckbox. When the JCheckbox is selected/deselected, ClassA needs to know about it.

Whats the correct way to handle such a situation where an event is fired by an inner class and has to be received by an external class. How does the external class (ClassA) register as a listener to the inner class (InnerB)?

InnerB is a custom rendering component for ClassB, so thats why I have it as an inner class within ClassB.

[553 byte] By [themiddlea] at [2007-11-26 13:42:16]
# 1
Register ClassA as a listener to InnerB through the constructor of ClassB.
Rodney_McKaya at 2007-7-7 23:59:52 > top of Java-index,Security,Event Handling...