EditorEx () { final EditorEx ex = super.createEditor(); ex.getScrollPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); ex.setHorizontalScrollbarVisible(true); applyDefaultSettings(ex); applyCustomizations(ex); return ex; }