How to control the JavaFX TextArea auto scroll?
问题 In my application I am appending the text to TextArea every 2 minutes. When ever I append new line to TextArea the auto scroll automatically going to down. But I want to stay the scroll where i am keep the scroll button. How to do it in JavaFX. logTextArea.appendText("Here i am appending text to text area"+"\n"); logTextArea.setScrollTop(Double.MIN_VALUE); I tried this but scroll automatically going to down , but I need to keep my scroll chosen position I don't want to go automatically down.