Is there a Swing component familiar with SQL syntax?

I'm looking for some Java Swing component (textarea like) that knows the SQL syntax - this means that it recognizes and highlights it.

If this does not happen, I will need to do it myself, any useful tips there, how not to spend too much time (for example, which component to use)?

+6
java swing syntax-highlighting
source share
4 answers

JSyntaxPane seems to support SQL highlighting (I haven't tried it myself).

+8
source share

I used Ostmiller Syntax Highlighter before. It is as simple as:

HighlightedDocument document = new HighlightedDocument(); JTextPane textPane = new JTextPane(document); 
+2
source share

You can look at SQuirreL SQL . After a quick look at the source code, I think it uses Swing and has a SQL editor with syntax highlighting and even content support.

+1
source share

The MIT-licensed jEdit syntax package supports SQL and many other languages.

I use a commercial JIDE Code Editor that uses jEdit and works very well.

+1
source share

All Articles