A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
swings
Greg Walker
Greenhorn
Joined: Sep 07, 2006
Posts: 24
posted
Sep 17, 2006 11:50:00
0
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?
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6603
1
I like...
posted
Sep 17, 2006 11:53:00
0
Instantiate the scrollPane and add it to the textarea. Now add this scrollpane to your
JPanel
.
The link shows you how.
http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
SCJP 6 articles
-
SCJP 5/6 mock exams
-
SCJP Mocks
-
SCJP 5 Mock exam (Word document )
-
SCJP 5 Mock exam in Java.Inquisition format
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
I like...
posted
Sep 17, 2006 13:01:00
0
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
.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: swings
Similar Threads
Dynamically setting TextArea size
JTextArea and scrolling
formatting the textarea form field in a servlet
how can i do this in javascript?
clearing a text area
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter