public CodeViewer(){
  setHighlightColor(DEFAULT_HIGHLIGHT_COLOR);
  initActions();
  setLayout(new BorderLayout());
  codeHighlightBar=createCodeHighlightBar();
  codeHighlightBar.setVisible(false);
  add(codeHighlightBar,BorderLayout.NORTH);
  codePanel=createCodePanel();
  add(codePanel,BorderLayout.CENTER);
  applyDefaults();
}

public CodeViewer ( ) { setHighlightColor ( DEFAULT_HIGHLIGHT_COLOR ) ; initActions ( ) ; setLayout ( new BorderLayout ( ) ) ; codeHighlightBar = createCodeHighlightBar ( ) ; codeHighlightBar . setVisible ( false ) ; add ( codeHighlightBar , BorderLayout . NORTH ) ; codePanel = createCodePanel ( ) ; add ( codePanel , BorderLayout . CENTER ) ; applyDefaults ( ) ; }
creates a new instance of codeviewer
