Add a scroll bar to text area

后端 未结 2 1018
灰色年华
灰色年华 2021-01-23 10:37

I use Eclipse Window Builder. When I click the button, something will be written on the screen. But since my prints are long, I want to use a scroll pane.

public         


        
2条回答
  •  醉梦人生
    2021-01-23 11:33

    You need to add the TextArea to the ScrollPane. Don't add the textarea tho the contentpane.

提交回复
热议问题