Here you can find the source of getHelpTextArea(String help, Color background, Font font)
public static JTextArea getHelpTextArea(String help, Color background, Font font)
//package com.java2s; //License from project: Apache License import javax.swing.JTextArea; import java.awt.Color; import java.awt.Font; public class Main { public static JTextArea getHelpTextArea(String help, Color background, Font font) { JTextArea helpText = new JTextArea(help); helpText.setLineWrap(true);/* ww w. j a va 2 s . c o m*/ helpText.setWrapStyleWord(true); helpText.setBackground(background); helpText.setFont(font); helpText.setEditable(false); return helpText; } }