resultsTable.setAutoCreateRowSorter(true);
resultsTable.setFillsViewportHeight(true);
resultsTable.setDefaultRenderer(Date.class, new DateTableCellRenderer());
// Add a listener for row clicks
resultsTable.addMouseListener(new RetrieveDefectController(this));
// Put the table in a scroll pane
JScrollPane resultsScrollPane = new JScrollPane(resultsTable);
this.add(resultsScrollPane, BorderLayout.CENTER);