Skip to content

Commit 86c440e

Browse files
committed
early caret update in TextArea
1 parent d4fc9e3 commit 86c440e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTextAreaUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected boolean handleTab(Object jqEvent) {
176176

177177
@Override
178178
public void caretUpdatedByProgram(CaretEvent e) {
179-
if (!jc.isVisible() || !isAWT) // for now, AWT only
179+
if (!jc.isVisible() || !isAWT || domNode == null) // for now, AWT only
180180
return;
181181
@SuppressWarnings("unused")
182182
int pt = e.getDot();

0 commit comments

Comments
 (0)