TextWrangler is an impressive programming text editor (as well as a "Unix and server administrator's tool") that's
free from Bare Bones...
http://www.barebones.com/products/textwrangler/index.shtml This is featured in the "Geek Factor" column of November's
Macworld, and I thought it deserves a mention here.
Note: To get it to recognize
Java, you need to go into Preferences / Language, and make the appropriate selection.