A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Sep 07, 2006
Sep 17, 2006 11:50:00
When dumping stuff into a text area how do you set up the side scroll bar so you can move up and down the text area to view info?
Joined: Feb 24, 2006
Sep 17, 2006 11:53:00
Instantiate the scrollPane and add it to the textarea. Now add this scrollpane to your JPanel.
The link shows you how.
SCJP 6 articles
SCJP 5/6 mock exams
More SCJP Mocks
Joined: Jul 11, 2001
Sep 17, 2006 13:01:00
Originally posted by John Meyers:
Instantiate the scrollPane and add it to the textarea.
Technically, you add the JTextArea as a child of the JScrollPane.
GenRocket - Experts at Building Test Data
I agree. Here's the link:
clearing a text area
formatting the textarea form field in a servlet
Dynamically setting TextArea size
JTextArea and scrolling
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014