public void actionPerformed(ActionEvent event) {
			toDisplay("User", outgoing.getText());
			String id = outgoing.getText().toLowerCase();
			if (id.substring(0, 7).equals("connect") && !isConnected) {
				frame.connectServer(id.substring(8, id.length()));
			}
			else if (id.equals("disconnect") && isConnected) {
				try {
					writer.write(serverTerminationCode);
					writer.flush();
					sock.close();
					serverStatus.setIcon(offImage);
					isConnected = false;
					toDisplay("System", "Connection severed.");
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			else if (id.equals("help")) {
				toDisplay("System", helpText);
			}
			else if (!isCommand(id)) {
				try {
					writer.println(outgoing.getText());
					writer.flush();
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			}
			outgoing.setText("");
			outgoing.requestFocus();
		}