private void buyHoldSell(Stock[] stocks){
    	int buyTemp=0;
    	int sellTemp=0;
    	int holdTemp=0;
    	buyArray = new Object [buy][10];
    	sellArray = new Object [sell][10];
    	holdArray = new Object [hold][10];
    	Object [][] smallBuy = new Object [buy][6];
    	Object [][] smallSell = new Object [sell][6];
    	Object [][] smallHold = new Object [hold][6];
    	for (Stock currStock: stocks) {
    		if(currStock.getBsh()==BSH.BUY){
    			columnsInArray(buyArray,currStock,buyTemp);
    			smallArray(smallBuy,currStock,buyTemp);
    			buyTemp++;
    		}else if(currStock.getBsh()==BSH.SELL){
    			columnsInArray(sellArray,currStock,sellTemp);
    			smallArray(smallSell,currStock,sellTemp);
    			sellTemp++;
    		}else{
    			columnsInArray(holdArray,currStock,holdTemp);
    			smallArray(smallHold,currStock,holdTemp);
    			holdTemp++;
    		}
    	}
    	buyTable.setModel(new DefaultTableModel(
				smallBuy,
				new String [] {"Symbol", "Name", "Last", "Open" , "Close" , "Volume"}){
    		private static final long serialVersionUID = 1L;

            @Override
    		public boolean isCellEditable(int row,int column){
    			return false;
    		}
    	});
    	sellTable.setModel(new DefaultTableModel(
				smallSell,
				new String [] {"Symbol", "Name", "Last", "Open" , "Close" , "Volume"}){
    		private static final long serialVersionUID = 1L;

        	@Override
			public boolean isCellEditable(int row,int column){
				return false;
        	}
		});
    	holdTable.setModel(new DefaultTableModel(
				smallHold,
				new String [] {"Symbol", "Name", "Last", "Open" , "Close" , "Volume"}){
    		private static final long serialVersionUID = 1L;

        	@Override
			public boolean isCellEditable(int row,int column){
				return false;
        	}
        });
    	
    	if(buyTemp >= 1){
    		buyTable.addMouseListener(new MouseAdapter(){
    			public void mouseClicked(MouseEvent e){
    				if(e.getClickCount()==2){
    					JTable target = (JTable)e.getSource();
        				int row = target.getSelectedRow();
    					printMessage(buyArray,row,"buy");
    				}
    			}
    		});
    	}
    	if(sellTemp >= 1){
    		sellTable.addMouseListener(new MouseAdapter(){
    			public void mouseClicked(MouseEvent e){
    				if(e.getClickCount()==2){
    					JTable target = (JTable)e.getSource();
        				int row = target.getSelectedRow();
    					printMessage(sellArray,row,"sell");
    				}
    			}
    		});
    	}
    	if(holdTemp >= 1){
    		holdTable.addMouseListener(new MouseAdapter(){
    			public void mouseClicked(MouseEvent e){
    				if(e.getClickCount()==2){
    					JTable target = (JTable)e.getSource();
        				int row = target.getSelectedRow();
    					printMessage(holdArray,row,"hold");
    				}
    			}
    		});
    	}
    }