EditorEx () { EditorEx editor = super.createEditor(); editor.getSettings().setUseSoftWraps(true); editor.getScrollPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); editor.setColorsScheme(editor.createBoundColorSchemeDelegate(EditorColorsUtil.getColorSchemeForComponent(this))); return editor; }