NonWrappingJTextPane as private inner class