catch(Exception ex) {
Log.debug("Error initializing connection values!");
//ex.printStackTrace();
}
HInsetPanel root = new HInsetPanel();
root.setLayout(new GridLayout((ext ? 8 : 7), 2, 5, 3));
root.add(host);
root.add(port);
root.add(anonBox);
root.add(listBox);
root.add(user);
root.add(pass);
root.add(dirBox);
root.add(modeBox);
root.add(lcwd);
root.add(cwd);
root.add(threadBox);
root.add(dl);
if(ext) {
root.add(crlf);
JPanel x1 = new JPanel();
x1.setLayout(new BorderLayout(2,2));
JLabel l1 = new JLabel("Unix: LF, Mac/MVS: CR, Win: CRLF");
l1.setFont(new Font("Dialog", Font.PLAIN, 10));
JLabel l2 = new JLabel("Don't change this unless you transfer text only");
l2.setFont(new Font("Dialog", Font.PLAIN, 10));
x1.add("North", l1);
x1.add("South", l2);
root.add(x1);
}
modeBox.setSelected(!Settings.getFtpPasvMode());
threadBox.setSelected(Settings.getEnableMultiThreading());
dirBox.setSelected(Settings.getUseDefaultDir());
anonBox.addActionListener(this);
threadBox.addActionListener(this);
root.add(okP);
okP.add(ok);
ok.addActionListener(this);
root.add(listP);
listP.add(list);
list.addActionListener(this);
dirBox.addActionListener(this);
setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);