Append some text to JTextArea
import javax.swing.JTextArea; public class Main { public static void main(String[] argv) { JTextArea ta = new JTextArea("Initial Text"); ta.append("some text"); } }