Dynamically resize textarea to fit content

后端 未结 3 1245
梦毁少年i
梦毁少年i 2021-01-27 03:00

Here is a textarea I have put in my program using netbeans. The first image shows what the textarea looks like when I run the program. The second image is show the textarea afte

3条回答
  •  旧巷少年郎
    2021-01-27 03:24

    Try this http://java-sl.com/tip_text_height_measuring.html

    I haven't tried it with JTextArea but suppose it should work

提交回复
热议问题