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

Abstract algebra continues the conceptual developments of linear algebra, on an even grander scale.

Dr. Paul Garrett