Simple NotePad, Java