});
menu.add("Rescan").addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
ProgressDialog progressDialog = new ProgressDialog(getRootPane(), "Library Rescan");
progressDialog.show(new Task() {
HashMap<String, Object> map = new HashMap<String, Object>();
@Override
public String getStatus() {
return "Scanning library\n" + String.valueOf(map.get("processing.file"));