public void actionPerformed(ActionEvent e)
    {
	JFileChooser choose = new JFileChooser();
	choose.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
	choose.setMultiSelectionEnabled(false);

	if(e.getSource() == b_to)
	    {
		choose.setCurrentDirectory(new File(tf_to.getText()));
		if(choose.showOpenDialog(new JFrame()) == JFileChooser.APPROVE_OPTION)
		    { tf_to.setText(choose.getSelectedFile().toString()); }
	    }
	else if(e.getSource() == b_from)
	    {
		choose.setCurrentDirectory(new File(tf_from.getText()));
		if(choose.showOpenDialog(new JFrame()) == JFileChooser.APPROVE_OPTION)
		    { tf_from.setText(choose.getSelectedFile().toString()); }
	    }
	else if(e.getSource() == b_trash)
	    {
	   	   choose.setCurrentDirectory(new File(tf_trash.getText()));
	   	   if(choose.showOpenDialog(new JFrame()) == JFileChooser.APPROVE_OPTION)
	   	     { tf_trash.setText(choose.getSelectedFile().toString()); }
	    }
	else if(e.getSource() == b_exit)
	    {
		IsszyPrefs.setFirstStart(true);
		System.exit(2);
	    }
	else if(e.getSource() == b_ok)
	    {
		try
		{
			IsszyPrefs.setTrashDirectory(tf_trash.getText());
		    IsszyPrefs.setInitialDirectory(tf_from.getText());
		    IsszyPrefs.setSortDirectory(tf_to.getText());
		    IsszyPrefs.setFirstStart(false);
		    this.setVisible(false);
		}
		catch(IOException o)
		{
		    JOptionPane.showMessageDialog(new JFrame(),"Please check to make sure you've entered valid directories", "Invalid Directory Information",JOptionPane.ERROR_MESSAGE);
		}
	    }
    }//end actionPerformed