really easy "new line" java question
<p>Really simple question: </p>

<p>I'm trying to get a time stamp to print out on the next line of this code. it is printing to a jTextArea. How I have the code right now is not working for some reason:</p>

<pre><code>try {
        Calendar calendar = Calendar.getInstance();
        Timestamp currentTimestamp = new     java.sql.Timestamp(calendar.getTime().getTime());

        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder = factory.newDocumentBuilder();
        Document doc = docBuilder.newDocument();
        Element root = doc.createElement("message");
        doc.appendChild(root);
        root.appendChild(doc.createTextNode(userName.getText() + ": " + msgText.getText() + "\n" + "sent at " + currentTimestamp));
        TransformerFactory fact = TransformerFactory.newInstance();
        Transformer trans = fact.newTransformer();
        DOMSource source = new DOMSource(doc);
        StreamResult sResult = new StreamResult(out);
        trans.transform(source, sResult);
        msgText.setText("");
        out.println("\n");
        out.flush();
    } catch (Exception e) {

    }
</code></pre>

<p>Thanks...</p>
