package smart_gs.menu.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;

import javax.swing.JOptionPane;

public class MakeDirInImageDirListner implements ActionListener {

	public MakeDirInImageDirListner(int i) {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		String str = (String)JOptionPane.showInputDialog(null, "Enter directory name:");
		File newfile = new File(str);

		if (!newfile.mkdir()){
			System.out.printf("Failed to create %s\n",str);
		}
	}
}
