public void setBST(BSTNode b,String stucture)
	{
		root=b;
		
		model = new DefaultTableModel(); 
        JTable table = new JTable(model); 

        // Create a couple of columns 
        model.addColumn("ISBN No"); 
        model.addColumn("Book Name"); 
        model.addColumn("Book Type"); 
        model.addColumn("Author Name"); 
        model.addColumn("Author Surname"); 
        
        if(stucture=="InOrder")
        {
        	if(root==null){System.out.println("Null tree");}
	        else
	        {
	        
	        	inorder(root);	
	        }
        }
        else if(stucture=="PreOrder")
        {
        	if(root==null){System.out.println("Null tree");}
	        else
	        {
	        
	        	PreOrder(root);	
	        }
        }
        else
        {
	        if(root==null){System.out.println("Null tree");}
	        else
	        {
	        
	        	PostOrder(root);	
	        }
        }

        
     
        JScrollPane scrollPane = new JScrollPane(table);
        getContentPane().add(scrollPane);
	}