/**
 * 
 */
package net.sf.taverna.t2.lang.ui;

import java.awt.Font;

import javax.swing.JTextArea;
import javax.swing.text.Document;

/**
 * @author alanrw
 *
 */
public class DialogTextArea extends JTextArea {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2329063139827993252L;

	/**
	 * 
	 */
	public DialogTextArea() {
		setFont(Font.getFont("Dialog"));
	}

	/**
	 * @param text
	 */
	public DialogTextArea(String text) {
		super(text);
		setFont(Font.getFont("Dialog"));
	}

	/**
	 * @param doc
	 */
	public DialogTextArea(Document doc) {
		super(doc);
		setFont(Font.getFont("Dialog"));
	}

	/**
	 * @param rows
	 * @param columns
	 */
	public DialogTextArea(int rows, int columns) {
		super(rows, columns);
		setFont(Font.getFont("Dialog"));
	}

	/**
	 * @param text
	 * @param rows
	 * @param columns
	 */
	public DialogTextArea(String text, int rows, int columns) {
		super(text, rows, columns);
		setFont(Font.getFont("Dialog"));
	}

	/**
	 * @param doc
	 * @param text
	 * @param rows
	 * @param columns
	 */
	public DialogTextArea(Document doc, String text, int rows, int columns) {
		super(doc, text, rows, columns);
		setFont(Font.getFont("Dialog"));
	}

}

@@ -207,21 +207,77 @@
 Area %7B%0A%0A
+%09private static Font newFont = Font.decode(%22Dialog%22);%0A%09%0A
 %09/**%0A
-
 %09 * %0A%09 *
@@ -395,38 +395,19 @@
 %7B%0A%09%09
-setFont(Font.getFont(%22Dialog%22)
+updateFont(
 );%0A%09
@@ -494,38 +494,19 @@
 ;%0A%09%09
-setFont(Font.getFont(%22Dialog%22)
+updateFont(
 );%0A%09
@@ -592,38 +592,19 @@
 ;%0A%09%09
-setFont(Font.getFont(%22Dialog%22)
+updateFont(
 );%0A%09
@@ -729,38 +729,19 @@
 ;%0A%09%09
-setFont(Font.getFont(%22Dialog%22)
+updateFont(
 );%0A%09
@@ -901,38 +901,19 @@
 ;%0A%09%09
-setFont(Font.getFont(%22Dialog%22)
+updateFont(
 );%0A%09
@@ -1107,40 +1107,110 @@
 ;%0A%09%09
-setFont(Font.getFont(%22Dialog%22));
+updateFont();%0A%09%7D%0A%09%0A%09private void updateFont() %7B%0A%09%09if (newFont != null) %7B%0A%09%09%09this.setFont(newFont);%0A%09%09%7D
 %0A%09%7D%0A

Corrected finding of the Font