public static JTextArea createStandardTextAreaHardNewLines(String text) {
        JTextArea result = new JTextArea(text);
        result.setEditable(false);
        result.setMargin(new Insets(0, UIConstants.ONE_SPACE, 0, UIConstants.ONE_SPACE));
        return result;
    }
public static JTextArea createStandardTextAreaHardNewLines ( String text ) { JTextArea result = new JTextArea ( text ) ; result . setEditable ( false ) ; result . setMargin ( new Insets ( 0 , UIConstants . ONE_SPACE , 0 , UIConstants . ONE_SPACE ) ) ; return result ; }
An alternative to multi-line labels, for the presentation of several
lines of text, and for which line breaks are determined solely by
<code>aText</code>, and not by the control.

@param text
the text to be placed in the text area.
@return <code>JTextArea</code> which is not editable and has improved
spacing over the supplied default (placing
{@link UIConstants#ONE_SPACE}on the left and right).