// download directory
JPanel jpDl = new JPanel(new GridBagLayout());
jpDl.setBorder(new TitledBorder(XNap.tr("Download Directory", 1)));
GridBagHelper.add(this, jpDl);
jteDownloadDir = new DirectoryPanel(prefs.getDownloadDir(), 20);
GridBagHelper.add(jpDl, jteDownloadDir);
// advanced button
GridBagHelper.add(jpDl, new JButton(new AdvancedAction()),
GridBagHelper.COMPONENT_INSETS, false,
GridBagConstraints.NORTHEAST);
// incomplete directory
JPanel jpIncomplete = new JPanel(new GridBagLayout());
jpIncomplete.setBorder
(new TitledBorder(XNap.tr("Incomplete Directory", 1)));
GridBagHelper.add(this, jpIncomplete);
jteIncompleteDir = new DirectoryPanel(prefs.getIncompleteDir(), 20);
GridBagHelper.add(jpIncomplete, jteIncompleteDir);
// upload directory list
JPanel jpUl = new JPanel(new GridBagLayout());
// share full path