jmDownloads.add(deleteAction);
jmDownloads.addSeparator();
jmDownloads.add(acOpenFile);
jmDownloads.add(new OpenFileWithMenu(this));;
jmDownloads.addSeparator();
jmDownloads.add(new UserMenu(this));
if (!filtered) {
jmDownloads.addSeparator();
jmDownloads.add(clearAction);
}
// download table
if (filtered) {
ttmDownloads = new FilteredTransferTableModel
(DownloadQueue.getInstance(), "download");
}
else {
ttmDownloads = new TransferTableModel
(DownloadQueue.getInstance(), "download",
XNap.tr("Download Table"));
}
jtaDownloads = ttmDownloads.createJTable();
jtaDownloads.setShowGrid(false);
jtaDownloads.addFocusListener(new FocusSelectionListener());
MouseListener mlDownloads = new PopupListener(jmDownloads);
jtaDownloads.addMouseListener(mlDownloads);
jtaDownloads.addMouseListener
(new DoubleClickListener(acRSOAction, jtaDownloads));
jtaDownloads.getInputMap().put
(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), acRSOAction);
jtaDownloads.getActionMap().put(acRSOAction, acRSOAction);
jtaDownloads.getInputMap().put
(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), deleteAction);
jtaDownloads.getActionMap().put(deleteAction, deleteAction);
jtaDownloads.getInputMap().put
(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), acEditFilter);
jtaDownloads.getActionMap().put(acEditFilter, acEditFilter);
jspDl = new JScrollPane();
jspDl.setViewportView(jtaDownloads);
// upload popup
JPopupMenu jmUploads = new JPopupMenu();
jmUploads.add(new JMenuItem(new StartAction()));
jmUploads.add(new JMenuItem(abortAction));
if (!filtered) {
jmUploads.addSeparator();
jmUploads.add(new JMenuItem(clearAction));
}
jmUploads.addSeparator();
jmUploads.add(new JMenuItem(acOpenFile));
jmUploads.add(new OpenFileWithMenu(this));
jmUploads.addSeparator();
jmUploads.add(new UserMenu(this));
// upload table
if (filtered) {
ttmUploads = new FilteredTransferTableModel(UploadQueue.getInstance(),
"upload");