//Container that displays table showing items in cart
tableModel = new TableModel();
JTable table = new JTable( tableModel );
//handler removes item to shopping cart
table.addMouseListener( new TableSelectionHandler() );
ListSelectionModel tableSelectionModel = table.getSelectionModel();
tableSelectionModel.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
TableColumnModel tableColumnModel = table.getColumnModel();
//notice we have a custom renderer for each column as both columns
// point to the same underlying object