code: private void init() {
  		setLayout(new BorderLayout(0, 0));
  
  		int rows = model.getRows();
  		int bufferSize = model.getBufferSize();
  
  		if (bufferSize > rows) {
  			scrollBar = new JScrollBar(JScrollBar.VERTICAL, 0, rows, 0, bufferSize + 1);
  			scrollBar.addAdjustmentListener(new AdjustmentListener() {
  				@Override
  				public void adjustmentValueChanged(AdjustmentEvent evt) {
  					repaint();
  				}
  			});
  			add(BorderLayout.LINE_END, scrollBar);
  		}
  
  		add(BorderLayout.CENTER, new Terminal());
  
  		repaint();
  	}
docs: Initializes the terminal.