public void init(Object parent, Object obj)
    {
        super.init(parent, obj);
        BaseApplet baseApplet = (BaseApplet)parent;
        
        this.addSubPanels(this);

        MessageManager messageManager = baseApplet.getApplication().getMessageManager();
        BaseMessageReceiver receiver = (BaseMessageReceiver)messageManager.getMessageQueue(CHAT_TYPE, MessageConstants.INTRANET_QUEUE).getMessageReceiver();
        
        new BaseMessageListener(receiver)   // Listener automatically added to receiver
        {
            public int handleMessage(BaseMessage message)
            {
                String strMessage = (String)message.get(MESSAGE_PARAM);
                addText(strMessage);
                return Constants.NORMAL_RETURN;
            }
        };
    }
public void init ( Object parent , Object obj ) { super . init ( parent , obj ) ; BaseApplet baseApplet = ( BaseApplet ) parent ; this . addSubPanels ( this ) ; MessageManager messageManager = baseApplet . getApplication ( ) . getMessageManager ( ) ; BaseMessageReceiver receiver = ( BaseMessageReceiver ) messageManager . getMessageQueue ( CHAT_TYPE , MessageConstants . INTRANET_QUEUE ) . getMessageReceiver ( ) ; new BaseMessageListener ( receiver ) { public int handleMessage ( BaseMessage message ) { String strMessage = ( String ) message . get ( MESSAGE_PARAM ) ; addText ( strMessage ) ; return Constants . NORMAL_RETURN ; } } ; }
Chat Screen Constructor.
@param parent Typically, you pass the BaseApplet as the parent.
@param @record and the record or GridTableModel as the parent.