final JMenuItem localJarFilesMenuItem = WidgetFactory.createMenuItem("Local JAR file(s)...",
"images/filetypes/archive.png");
localJarFilesMenuItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
AddDatabaseDriverDialog dialog = new AddDatabaseDriverDialog(_databaseDriverCatalog,
DatabaseDriversPanel.this, _windowContext, _userPreferences);
dialog.setVisible(true);
}
});
final JPopupMenu popup = new JPopupMenu();
popup.add(menu);