private final Action findAction;
private ComponentPainter painter;
public ExpressionAreaTextPane(boolean withInstanceFunctions) {
super(new ScriptDocument());
this.withInstanceFunctions = withInstanceFunctions;
this.findAction = createFindAction();
this.caret = new CaretImpl();
setCaret(caret);
getDocument().addDocumentListener(new DocumentListenerHandler());