Crosscompiler Java -> GLSL?

This should be easy in Swing. The editor for the TableLayout DSL (which is now obsolete (the DSL is obsolete, TableLayout is still very much alive :))) does it using RSyntaxTextArea:
After an edit it tries to compile, catches any exception, determines the line and column for the error, and applies red squiggly underlines. RSyntaxTextArea makes error underlines, syntax highlighting, code completion, auto indent, curly brace matching, line wrap, etc very easy. Also the author is very responsive to requests. Source for the editor is here: