public void write(String msg) {
        try {
            java.util.Date date= new java.util.Date();
            Timestamp timestamp = new Timestamp(date.getTime());
            this.debugTextArea.getDocument().insertString(0, "["+timestamp+"] " + msg + "\n", null);
        }
        catch (Exception e) {            
        }
    }