I am having problems with a JavaFX Application compiled and run in Java 10. Text inside a JavaFX TextArea appears blurry. Text inside a TextField appears fine (see attached image to compare the two).
I've seen some posts on Stack Overflow and other sites with various suggestions, but none of them work. Some failed solutions included setting -fx-stroke-width, and not wrapping the TextArea in other Panes like AnchorPanes. For me, -fx-stroke-width did nothing; also, the TextArea is not wrapped. Fonts and styles are default for both the TextArea and TextField. Why is the TextArea text noticeably less sharp? I suspect something weird may be happening with Java 10's automatic DPI scaling -- I'm on a HiDPI laptop and the problem does not appear if I disable Windows DPI scaling (though that causes the application to appear far too small, of course).
Relevant code (as per request):
GridPane gp = new GridPane(); //GridPane gp is the root of the primary Stage's scene
textArea = new TextArea();
GridPane.setHalignment(textArea, HPos.CENTER);
gp.add(textArea,0,1) //There's a Pane in position 0,0