JTextArea的自动定位最后一行

对JTextArea操作append动态数据的时候。
每次插入一行后需要使用JTextArea.selectall();
以便使jscrollpanel的滚动条定位到最后一行记录。

原文地址:https://www.cnblogs.com/tianguook/p/2382976.html