@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
         String se = e.getActionCommand();
		
		if(se.equals("Browse"))
		{
			JFrame f = new JFrame("Select Location");
			JFileChooser fc = new JFileChooser();
			
			
			f.add(fc);
			f.setVisible(true);
			fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
			
			int returnval = fc.showDialog(f,"select");
			if(returnval == JFileChooser.APPROVE_OPTION) {
			    fc.approveSelection();
			    f.pack();
			    f.setLocation(0,0);
				ft.setText(fc.getCurrentDirectory().getPath()+File.separator+fc.getSelectedFile().getName());
				
			}
			else if(returnval == JFileChooser.CANCEL_OPTION){
				fc.cancelSelection();
			ft.setText("");
				f.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
				
			}
			else{
				
			}
			
		}else if(se.equals("Location"))
		{
			JFrame f = new JFrame("Select Location");
			JFileChooser fc = new JFileChooser();
			
			
			f.add(fc);
			f.setVisible(true);
			fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
			
			int returnval = fc.showDialog(f,"select");
			if(returnval == JFileChooser.APPROVE_OPTION) {
			    fc.approveSelection();
			    f.pack();
			    f.setLocation(0,0);
				tt.setText(fc.getCurrentDirectory().getPath()+File.separator+fc.getSelectedFile().getName());
				
			}
			else if(returnval == JFileChooser.CANCEL_OPTION){
				fc.cancelSelection();
			tt.setText("");
				f.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
				
			}
			else{
				
			}
			
		}
		
	}