Hey guys, I created an abstract class (or a simulation of an abstract class) that extends from Panel, called AbstractPanel. This class draws and layout the max, min and close buttons on top of the panel. This class also have the implementation for drag&drop and resize for the component.
I have another component that extends from this class, called ViewPanel. In ViewPanel I coded the handlers for the max, min and close buttons. Once the user clicks any of the buttons, AbstractPanel dispatches an event and ViewPanel handles that event. For example, if the min button is clicked AbstractPanel dispatches the MIN_PANEL event and ViewPanel listen to it and minimize the panel. The object ViewPanel is a child of a Panel called "pnl_container". The problem is that when any of the buttons are clicked the parent is lost between the dispatch of the event and the handler. In AbstractPanel before the dispatch of the event, the parent of the component is "pnl_container", but when it enter to the handler function in ViewPanel the parent is null. Does anyone know why this happen? Thanx a lot, DaNooB

