title: How to enable scroll bar in an eclipse table
body: <p>I created a table with many rows. when i run this it is displaying all the rows in one big window. how should i limit the no of rows that are displayed in a table and have a vertical scroll bar to view the other rows.</p>
  
  <p>i tried with calling setBounds and setSize on the table. But it is still showing all the rows in one big window. </p>
  
  <pre><code>        Display display = new Display();
          Shell shell = new Shell(display);
          shell.setLayout(new GridLayout(1, true));
          Table table = new Table(shell, SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER);
          table.setBounds(0, 0, 100, 100);
          for (int i=0; i&lt;4; i++) {
               TableColumn column = new TableColumn (table, SWT.NONE);
               column.setText ("Column " + i);
          }
          for(int i = 0; i &lt; table.getColumnCount(); i++) {
               table.getColumn(i).setWidth(150);
          }
          for(int i = 0; i &lt; 50; i++){
              TableItem item = new TableItem(table,SWT.NONE);
              item.setText(new String[]{"Item " + i,"Item " + i,"Item " + i,"Item " + i});
          }
          shell.pack();
          shell.open();
          while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
              display.sleep();
          }
          display.dispose();
  </code></pre>