TransJam Collaboration Server

TransJam Client Programming Tutorial

Home Documentation Chat Demo WebDrum

Complete Chat Applet

The only thing remaining for a complete chat Applet is the cleanup code. When the browser leaves the web page, it calls the stop() method. So we can define our stop method as follows.
/** When the Applet is stopped, logout from the server and cleanup the GUI. */
    public void stop()
    {
        chatPanel.stop();
        helper.logout();
        removeAll();
    }
Here is the complete source code for the Chat Applet.

[Previous] [Top] [Next]

(C) 2002 SoftSynth.com