public void run() {
                    try {
                        chatPane.getCaret().setDot(chatPane.getStyledDocument().getLength());
                    } catch (Exception ignored) {}
                }