Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Applets and the fly likes TextArea scrollbar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "TextArea scrollbar" Watch "TextArea scrollbar" New topic

TextArea scrollbar

Robert Stewart

Joined: Aug 02, 2001
Posts: 5
Is there a way to enable the vertical scrollbar of a text area while leaving the text area itself disabled? In other words, a user can not enter text but can scroll through the text. Anybody know? Thanks!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Do you mean that there's text in the area and you want to be able to scroll it without it being editable? Just set the "editable" property of the text area false.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: TextArea scrollbar
It's not a secret anymore!