This question already has an answer here:
I'm looking for a text editor that can compile and run .java files directly, without having to use
javac filename.java and
java filename. Something similar would be Textpad for Windows, which uses ctrl+1 to compile and ctrl+2 to run.
I've been using gedit for a while, but I find that Textpad is so much easier. What is a program for Linux (preferably free) that offers this feature?
I also don't want an IDE, just a simple text editor with keyboard shortcuts. I have tried Eclipse and Netbeans and found them too unwieldy for my tastes.