Skip to content
Advertisement

Tag: system

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 code for it: In my AppController.java file, I put TextArea as protected so I can access it from another class in the same package: Now this

Advertisement