JComponent () { //workaround for extra lines appearing in the console JComponent centerComponent = super.createCenterComponent(); getHistoryViewer().getSettings().setAdditionalLinesCount(0); getHistoryViewer().getSettings().setUseSoftWraps(false); getConsoleEditor().getGutterComponentEx().setBackground(getConsoleEditor().getBackgroundColor()); getConsoleEditor().getGutterComponentEx().revalidate(); getConsoleEditor().getColorsScheme().setColor(EditorColors.GUTTER_BACKGROUND, getConsoleEditor().getBackgroundColor()); // settings.set return centerComponent; }