Here you can find the source of getAreaValue(JTextArea ta)
protected static String getAreaValue(JTextArea ta)
//package com.java2s; //License from project: Open Source License import javax.swing.JTextArea; public class Main { protected static String getAreaValue(JTextArea ta) { String ret = ta.getText().trim(); if (!ret.equals("")) { return ret; }/*from w ww. ja va 2s . co m*/ return null; } }