Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextArea 1

Status
Not open for further replies.

KryptoS

Programmer
Feb 7, 2001
240
BE
Hello,

I have a textarea with scrollbars. Now I wanted to disable the textarea buth then the scrollbars are also disabled. Now I'm searching for something so that I can't wright in the textarea and where the scrollbars still works!!!

thanx
 
Are you using Swing? Swing provides for that type of behavior much more than plain AWT.

-pete
 
Normally I use AWT, but I can also use Swing if I have too ...
 
Hi. I believe you can do what you want by setting your TextArea as not being editable. Whereas it will show you the text that is already there, but the user cannot type in it, and the scrollbars still function.
Any class derived from TextComponent should have this functionality.

textarea.setEditable( false );


hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top