public void actionPerformed(ActionEvent e) {
		if (e.getSource() == btn_file) {
			JFileChooser chooser;
			chooser = new JFileChooser(); 
			chooser.setCurrentDirectory(new java.io.File("."));
			chooser.setDialogTitle("Select Corpus");
			chooser.setAcceptAllFileFilterUsed(false); 
			if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { 
				graphFilePath.setText(chooser.getSelectedFile().toString());
			}

		}
		if (e.getSource() == btn_proceed) {
			textAreaResults.setText("");
			if(graphFilePath.getText().isEmpty()){
				JOptionPane.showMessageDialog(this, "Please load a file to proceed algorithm");
			}else if (!rdbtnAlgo1.isSelected() && !rdbtnAlgo2.isSelected()){
				JOptionPane.showMessageDialog(this, "Please choose an algorithm to proceed algorithm");
			}else{
				GlobalAlgo.result="";
				GlobalAlgo.algo = (rdbtnAlgo1.isSelected()) ? 1 : 2;
				GlobalAlgo.launchAlgo(graphFilePath.getText());
				textAreaResults.setText(GlobalAlgo.result);
				validate();
			}
		}
		if (e.getSource() == btn_quit) {
	        int result = JOptionPane.showConfirmDialog(
	        		this,
	                "Are you sure you want to exit the application?",
	                "Exit Application",
	                JOptionPane.YES_NO_OPTION);
	        if (result == JOptionPane.YES_OPTION)
	        	this.dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
		}
	}