This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Swing" Watch "Swing" New topic


Tejas Kansara
Ranch Hand

Joined: Dec 14, 2000
Posts: 38
In Swing how to add scrollbar to textarea b'coz by default it doesn't take it.
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
From the JTextArea AIP:
The java.awt.TextArea internally handles scrolling. JTextArea is different in that it doesn't manage scrolling, but implements the swing Scrollable interface. This allows it to be placed inside a JScrollPane if scrolling behavior is desired, and used directly if scrolling is not desired.
So you add your JTextArea to a JScrollPane.
I agree. Here's the link:
subject: Swing
Similar Threads
Which is the hottest Java Technolgy?
Allow only numbers?
WA #1.....word association
getting information from GUI
WA #2 ..... word association