View Single Post
  #4 (permalink)  
Old 05-05-2008, 10:19 AM
Eku Eku is offline
Senior Member
 
Join Date: May 2008
Location: Makati, Philippines
Posts: 175
Eku is on a distinguished road
Try to create a refresh button.
And try this code. I hope it helps.

public void actionPerformed(ActionEvent event) {
String command = event.getActionCommand();
if (command.equals("Connect")) {
try {
SockTest mySock = new SockTest();
chat.append(mySock.chatText);
} catch (IOException ioe) {
chat.setText("Error " + ioe.getMessage());
}

}
else if (command.equals("Refresh")) {
//Create your refresh here
}
}
Reply With Quote