Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Help Regarding JTextArea

  Asked By: Ryan    Date: Aug 29    Category: Java    Views: 733
  

I am developing a simple notepad application using swing. I didn't know
how to add scrollbar to JTextArea. I think you have understood my problem. Can
anyone help me to solve this.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Garai Chalthoum     Answered On: Aug 29

Put the JTextArea in a JScrollPane

JScrollPane sp = new JScrollPane(new JTextArea());

 
Didn't find what you were looking for? Find more on Help Regarding JTextArea Or get search suggestion and latest updates.




Tagged: