Methods Summary |
---|
public void | actionPerformed(java.awt.event.ActionEvent e)A one-shot event handler.
Sole purpose is to get an alias from the user and get the client connected
The TextField is blanked by removing it from the applet
The action events are also cancelled
The client has a controlling thread started if the connection is successful remove(alias);
if( client.connect( alias.getText() ) )
{ alias.removeActionListener( this );
new Thread( client ).start();
}
|
public void | init() setLayout( new BorderLayout() );
client= new Chatter( getDocumentBase().getHost() );
add( client, BorderLayout.CENTER );
|
public void | start()
/**/
add( alias, BorderLayout.SOUTH );
alias.addActionListener( this );
client.init();
|
public void | stop() client.disconnect();
|