I guess this depends on what you are comparing to. There are two major text input components in HTML, one is the text input type which is similar to the JTextField, and the other is the textarea which is similar to the JTextArea/JEditorPane/JTextPane.
Methinks you are intending to make use of a multiline input such as the JTextArea. If you want it to be styleable, its easiest to use the JEditorPane.
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php