To reproduce the error just press the enter key and then backspace.
import org.fxmisc.richtext.StyleClassedTextArea;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class App extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
StyleClassedTextArea ta = new StyleClassedTextArea();
ta.setPrefSize(600,600);
ta.setWrapText(true);
ta.setLayoutX(0);
ta.setLayoutY(0);
BorderPane root = new BorderPane(ta);
primaryStage.setScene(new Scene(root, 600, 600));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
To reproduce the error just press the enter key and then backspace.