"scroll bars problem"

After typing more in one text box scroll bars are not appearing, i wrote the necessary code to appear the scroll bars.Can u tell me wt might be the problem?

thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mayank SAssociate Director - Product EngineeringCommented:
I'm assuming that you're using TextArea in a Frame. If not, then you can just modify the code a bit to make it work.

TextArea mytext = new TextArea ( "", 200, 200, TextArea.SCROLLBARS_VERTICAL_ONLY ) ;
mytext.setBounds ( 100, 100, 200, 200 ) ;
add ( mytext ) ;

This will draw a text-area of size 200 X 200 pixels with the top-left corner at (100, 100) and it will only let a vertical scrollbar be there. It will be initially deactivated but when you type text which exceeds the capacity of the text-area, it will be actiuvated automatically. Also, you can use TextArea.SCROLLBARS_BOTH or TextArea.SCROLLBARS_HORIZONTAL_ONLY as per your need.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mayank SAssociate Director - Product EngineeringCommented:
How about rating it now?
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
Mayank SAssociate Director - Product EngineeringCommented:
Recommendation: Accept mayankeagle's comment as answer :-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.