Simple Java text coder written to practice using Swing