int opt = JOptionPane.showOptionDialog(this, "Would you like to type one command or to open a shell?","Question", JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE,
new ImageIcon(HImage.getImage(this, Settings.helpImage)), new String[] {"Shell","Command", "Cancel"}, "Command");
if(opt == 1) {
RemoteCommand rc = new RemoteCommand();
}
else if(opt == 0) {
FtpConnection conn = (FtpConnection) con;
Shell s = new Shell(conn.getCommandInputReader(), conn.getCommandOutputStream());
}