Text auto-scrolling in JavaFX TextArea

核能气质少年 提交于 2019-12-12 03:46:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!