Here you can find the source of initTextAreaEdit(JTextArea j1)
public static void initTextAreaEdit(JTextArea j1)
//package com.java2s; //License from project: Apache License import javax.swing.*; public class Main { public static void initTextAreaEdit(JTextArea j1) { j1.setLineWrap(true);//from w w w . j a va 2 s.c om j1.setWrapStyleWord(true); } }