chatArea.append("\n" + e.getMessage());
chatArea.append('\n' + e.getMessage());
    public ChatterBox(ClientGUI clientgui) {        client = clientgui.getClient();        client.game.addGameListener(new GameListenerAdapter() {            public void gamePlayerChat(GamePlayerChatEvent e) {                chatArea.append("\n" + e.getMessage()); //$NON-NLS-1$                PlayerListDialog.refreshPlayerList(playerList, client);            }            public void gamePlayerChange(GamePlayerChangeEvent e) {                PlayerListDialog.refreshPlayerList(playerList, client);            }            public void gameTurnChange(GameTurnChangeEvent e) {                PlayerListDialog.refreshPlayerList(playerList, client);            }            public void gamePhaseChange(GamePhaseChangeEvent e) {                PlayerListDialog.refreshPlayerList(playerList, client);            }            public void gameEntityNew(GameEntityNewEvent e) {                PlayerListDialog.refreshPlayerList(playerList, client);            }            public void gameEntityRemove(GameEntityRemoveEvent e) {                PlayerListDialog.refreshPlayerList(playerList, client);            }        });        chatArea = new JTextArea(" \n", GUIPreferences.getInstance().getInt("AdvancedChatboxSize"), 40); //$NON-NLS-1$        chatArea.setEditable(false);        playerList = new List(GUIPreferences.getInstance().getInt("AdvancedChatboxSize"));        inputField = new JTextField();        inputField.addKeyListener(this);        butDone = new JButton(Messages.getString("ChatterBox.ImDone")); //$NON-NLS-1$        butDone.setEnabled(false);        chatPanel = new JPanel(new BorderLayout());        JPanel subPanel = new JPanel(new BorderLayout());        subPanel.add(new JScrollPane(chatArea), BorderLayout.CENTER);        subPanel.add(playerList, BorderLayout.WEST);        subPanel.add(inputField, BorderLayout.SOUTH);        chatPanel.add(subPanel, BorderLayout.CENTER);        chatPanel.add(butDone, BorderLayout.EAST);    }