public static void guiJTextAreaAddString(final javax.swing.JTextArea area, final String msg) {
	new Thread(new Runnable() {
		public void run() {
			String txt = area.getText();
			txt += '\n' + msg;
			area.setText(txt);
			area.setCaretPosition(txt.length());
		}
	}).start();
}


Back to JavaHowTo

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett