Modified JTextPane so that in doesn't wrap text. Removed unused Window protocol.