mirror of
https://github.com/processing/processing4.git
synced 2026-02-23 23:35:41 +01:00
Merge branch 'master' of https://github.com/processing/processing
This commit is contained in:
@@ -103,7 +103,7 @@ public class JEditTextArea extends JComponent
|
||||
}
|
||||
|
||||
// Initialize some misc. stuff
|
||||
painter = new TextAreaPainter(this, defaults);
|
||||
painter = createPainter(defaults);
|
||||
documentHandler = new DocumentHandler();
|
||||
eventListenerList = new EventListenerList();
|
||||
caretEvent = new MutableCaretEvent();
|
||||
@@ -176,6 +176,16 @@ public class JEditTextArea extends JComponent
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Override this to provide your own painter for this {@link JEditTextArea}.
|
||||
* @param defaults
|
||||
* @return a newly constructed {@link TextAreaPainter}.
|
||||
*/
|
||||
protected TextAreaPainter createPainter(final TextAreaDefaults defaults) {
|
||||
return new TextAreaPainter(this, defaults);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Inline Input Method Support for Japanese.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user