private JTextArea TArea = new JTextArea("String goes Here!");
add(new JScrollPane(TArea));
Assuming of course you have JFrame and all that already working...
Edit: Sorry this ain't before noon; I have found it's a good habit to do homework when you first get it, rather then right before it's due.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.