问题
Hello guys i'm making a calculator using Javafx and want the text in the TextArea to auto scroll left when it become larger than the teaxtarea size
Edited
Question Answered below
回答1:
Using this methods after every setText
object_Name.selectPositionCaret(lbl.getLength());
object_Name.deselect();
来源:https://stackoverflow.com/questions/37000781/text-auto-scrolling-in-javafx-textarea