How to redirect output from System.out to JavaFx TextArea

I’m trying to create a simple app that allows me to redirect all System.out to a JavaFX TextArea within my app. For this, I created a CustomOutputStream class from the OutputStream class. Here’s the …