public P_BulkMakeTab(){
    	
    	this.setLayout(new BorderLayout());
    	
		
		topPane = new JPanel();
			keyLabel = new JLabel("Key");
			keyTxtFld = new JTextField(10);
			keyLabel = new JLabel("Enter key and tick checkbox to print just one card");
			singleCardCB = new JCheckBox();
			topPane.add(keyLabel);
			topPane.add(keyTxtFld);
			topPane.add(singleCardCB);
		
		
		
		centerPane = new JPanel();
		
		GroupLayout centerLayout = new GroupLayout(centerPane);
		centerPane.setLayout(centerLayout);
		centerLayout.setAutoCreateGaps(true);
		centerLayout.setAutoCreateContainerGaps(true);
		
		
		
		
		
		inputPane = new JPanel(new BorderLayout());
		    inputFileLabel = new JLabel("Enter full path to XML file");
		    inputFileTxtFld = new JTextField();
		    inputFileTxtFld.setMaximumSize( inputFileLabel.getPreferredSize());
		    inputPane.add(inputFileLabel,BorderLayout.NORTH);
		    inputPane.add(inputFileTxtFld,BorderLayout.CENTER);
		    
		    //browse button for input xml file
		    browseInputBt = new JButton("Browse");
		    browseInputBt.addActionListener(new ActionListener(){
		        
		        public void actionPerformed(ActionEvent e){
		
		            JFileChooser chooser = new JFileChooser();
		            FileNameExtensionFilter filter = new FileNameExtensionFilter(
		                "Xml File", "xml");
		            chooser.setFileFilter(filter);
		            int returnVal = chooser.showOpenDialog(null);
		            if(returnVal == JFileChooser.APPROVE_OPTION) {
		               System.out.println("You chose to open this file: " +
		                    chooser.getSelectedFile().getName());
		               inputFileTxtFld.setText(chooser.getSelectedFile().getAbsolutePath() );
		            }
		            
		        }
		    });
		inputPane.add(browseInputBt,BorderLayout.EAST);
		
		outputPane = new JPanel(new BorderLayout());
		    outputFileLabel = new JLabel("Enter full path to output directory");
		    outputFileTxtFld = new JTextField();
		    outputFileTxtFld.setMaximumSize( outputFileTxtFld.getPreferredSize());
		    outputPane.add(outputFileLabel,BorderLayout.NORTH);
		    outputPane.add(outputFileTxtFld,BorderLayout.CENTER);
		    
		    browseOutputBt = new JButton("Browse");
		    browseOutputBt.addActionListener(new ActionListener(){
		        
		        public void actionPerformed(ActionEvent e){
		
		            JFileChooser chooser = new JFileChooser();
		            chooser.setCurrentDirectory(new java.io.File("."));
		            chooser.setDialogTitle("Pick Destination");
		            chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
		            //
		            // disable the "All files" option.
		            //
		            chooser.setAcceptAllFileFilterUsed(false);
		            
		            
		            if(chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
		               System.out.println("You chose to open this file: " +
		                    chooser.getSelectedFile().getName());
		               outputFileTxtFld.setText(chooser.getSelectedFile().getAbsolutePath() + "\\scrumBoardCards.html");
		                }
		                
		            }
		        });
		        outputPane.add(browseOutputBt,BorderLayout.EAST);
		    
		    centerLayout.setHorizontalGroup(
		        centerLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
		          .addComponent(inputPane)
		          .addComponent(outputPane)
		          
		    );
		    centerLayout.setVerticalGroup(
		        centerLayout.createSequentialGroup()
		            .addComponent(inputPane)
		            .addComponent(outputPane)
		            
		    );
		
		    
		submitPane = new JPanel();
		    makeBt = new JButton(sMakeCardBt);
			makeBt.addActionListener(new ActionListener(){
			    
			    public void actionPerformed(ActionEvent e){
			    	
			    	if(singleCardCB.isSelected()){
			    		
			    		try {
							Controller.makeCard(inputFileTxtFld.getText(), outputFileTxtFld.getText(), keyTxtFld.getText());
						} catch (FileNotFoundException e1) {
							// TODO Auto-generated catch block
							e1.printStackTrace();
						} catch (IOException e1) {
							// TODO Auto-generated catch block
							e1.printStackTrace();
						}
			    		JOptionPane.showMessageDialog(null,"Card x printed" + "\n\n"+ "See -> "+ outputFileTxtFld.getText());
			    	}
			    	else{
			    		try {
							Controller.makeCards(inputFileTxtFld.getText(), outputFileTxtFld.getText());
						} catch (FileNotFoundException e1) {
							// TODO Auto-generated catch block
							e1.printStackTrace();
						} catch (IOException e1) {
							// TODO Auto-generated catch block
							e1.printStackTrace();
						}
			    	}
			        JOptionPane.showMessageDialog(null,sCardsMadeMess + "\n\n"+ "See -> "+ outputFileTxtFld.getText());
			        
			    }
			});
			
			cancelBt = new JButton("Cancel");
			    cancelBt.addActionListener(new ActionListener(){
			        
			        public void actionPerformed(ActionEvent e){
			        	System.exit(0);
			            
			        }
			    });
			    submitPane.add(makeBt);
			    submitPane.add(cancelBt);
		                
		this.add(topPane, BorderLayout.NORTH);
		this.add(centerPane, BorderLayout.CENTER);
		this.add(submitPane,BorderLayout.SOUTH);
		
		}//END CONSTRUCTOR