String name = JOptionPane.showInputDialog("Enter directory name:");
CommandData data = new CommandData();
String path = getAbsolutePath() + "/" + name;
data.addItem(Keys.DIR_NAME, path);
// Create directory.
MakeDirectory makeDirectory = new MakeDirectory();
try {
makeDirectory.perform(data);
} catch (Exception exception) {
exception.printStackTrace();
}
// Refresh panels.
CommandData refreshData = new CommandData();