• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextArea

 
Mike Southgate
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTextArea that I'm getting a bunch of text from. Formatting stuff is irrelevant, only content matters. I need to eventually save this into a MySql database. How should I store the content in order to load it into the database? I'm using MySQL's mediumText type to store it.

ms
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String content = textArea.getText();
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is SCJP?
 
Mike Southgate
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but isn't String limited to 255 characters?

and yes, I suppose it more correctly should read SCPJ2, but then shouldn't it really be SCPJ2P. And actually my card indicates SCDJ2P too.

ms
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Southgate:
but isn't String limited to 255 characters?

no
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Southgate:
but isn't String limited to 255 characters?


SCJP huh.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!