Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

TextArea capacity.

Should be an easy one for someone:
What does the capacity of a textarea depend on? If and when it becomes full what are the suggested routes of action?
0
krakatoa
Asked:
krakatoa
1 Solution
 
amswainCommented:
You can pass the rows and columns allowable into the constructor of a JTextArea.
0
 
objectsCommented:
the max length of a String I would suspect, which I think is Integer.MAX_VALUE. Hopefully you should not approach that limit :)
0
 
krakatoaAuthor Commented:
Before approaching MAXVALUEs, is there likely to be any effect on the practical size limit due to local machine conditions for e.g.?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
RayGunCommented:
I'm pretty sure TextArea has a 32bit storage area, wich should be plenty. As far as I know there is no effect on the practical size limit due to local machine conditions either.
0
 
krakatoaAuthor Commented:
As near as that.
Thanks
K.
0
 
objectsCommented:
> is there likely to be any effect on the practical size
> limit due to local machine conditions

I would suspect your app would get slower as the amout of text increased.
And you'll probably eventually run out of memory.

Thanks for the points.

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now