A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
preserve line breaks from jtextarea when storing in database
Joined: Aug 11, 2011
Jul 08, 2012 12:24:37
how to preserve line breaks of jtextarea while storing and retrieving text from database(oracle)?
Joined: Oct 14, 2005
Jul 08, 2012 14:53:07
You just read the data from the
and store that String into the database. Why do you ask? Did you already try something which failed to preserve the line breaks? If so, let's have a look at your code and get it fixed up.
It is sorta covered in the
JavaRanch Style Guide
subject: preserve line breaks from jtextarea when storing in database
How to handle ENTER key event in JTextArea
Searching for string usign JSTL
Retain buffer formatting
Display problem in JFrame
Preserve word wrap and line breaks
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014