From: cindy <inf...@pi...> - 2001-04-04 14:58:21
|
> The following code worked for me : > > from java.awt import Component , AWTEvent > > class C( Component ) : > def __init__( self ) : > self.super__enableEvents( AWTEvent.WINDOW_EVENT_MASK ) Ok. So this means that ever time I wanted to use this method, "enableEvents()" I have to inherit Component. But lets say that I would like to extend some other component, like JFrame. Then if I want to use enableEvents() in the same class that I want to extend JFrame, I would have to inherit Componet and do a composit on JFrame. Is this correct? Thanks. Wayne |