Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void windowClosing(WindowEvent e) {
- try {
- port.leave(id);
- port.talk(username + " has left the chat. Goodbye!");
- }
- catch (Exception ex) {
- otherText.append("Exit failed.");
- }
- System.exit(0);
- }
Add Comment
Please, Sign In to add comment