
Jsyntaxpane provides you with a very simple to use, and now with simple method to configure, way to handle simple syntax highlighting and editing of various languages within your java swing application.
currently supported out of the box are java, javascript, properties, groovy, c, c++, xml, sql, ruby and python.