/**
   * Creates a new JTable <code>SegmentTable</code> with the columns "offset" and "content" and put
   *
   * @return (JScrollPane) The JScrollPane that contains a table which is used for the stack segment
   */
  public JScrollPane createStackTable() {

    stackModel =
        new DefaultTableModel() {
          public boolean isCellEditable(int rowIndex, int mColIndex) {
            return false;
          }
        };
    ArrayList<String> temp = new ArrayList<String>();
    temp.add("Offset");
    temp.add("Content");
    SegmentTable segment = new SegmentTable(stackModel, temp);
    int vColIndex = 0;
    TableColumn col = segment.getColumnModel().getColumn(vColIndex);
    int width = 60;
    col.setPreferredWidth(width);
    JScrollPane jScrollPane = new JScrollPane(segment);
    jScrollPane.setPreferredSize(new Dimension(200, 350));

    return jScrollPane;
  }
  /**
   * Creates a new JTable <code>SegmentTable</code> with the columns "IP" and "Instruction" and put
   *
   * @return (JScrollPane) The JScrollPane that contains a table which is used for the code segment
   */
  public JScrollPane createTable(boolean start) {

    model =
        new DefaultTableModel() {
          public boolean isCellEditable(int rowIndex, int mColIndex) {
            return false;
          }
        };
    ArrayList<String> temp = new ArrayList<String>();
    temp.add("IP");
    temp.add("Instruction");
    codeSegment = new SegmentTable(model, temp);
    int vColIndex = 1;
    TableColumn col = codeSegment.getColumnModel().getColumn(vColIndex);
    int width = 90;
    col.setPreferredWidth(width);
    JScrollPane jScrollPane = new JScrollPane(codeSegment);
    jScrollPane.setPreferredSize(new Dimension(250, 350));

    return jScrollPane;
  }