Jext is a free (as in free speech, covered by the GPL licence) source code editor written in Java. You can download it, use it, modify it, redistribute it…​ your choice, your freedom.