del.delete();
		public void actionPerformed(ActionEvent ae) {			String kommando = ((JMenuItem)ae.getSource()).getText();      			if (kommando.equals(YAMM.getString("tree.new.box"))) {				new NewBoxDialog(frame);			} else if (kommando.equals(YAMM.getString("tree.new.group"))) {				new NewGroupDialog(frame);			} else {				if (getLastSelectedPathComponent() != null) {					File del = new File(getLastSelectedPathComponent().toString());					if (!del.isDirectory() && del.exists()) {						String file = getLastSelectedPathComponent().toString();						String sep  = YAMM.sep; 						if (!file.endsWith(sep + YAMM.getString("box.inbox")) &&								!file.endsWith(sep + YAMM.getString("box.outbox")) &&								!file.endsWith(sep + YAMM.getString("box.sent")) &&								!file.endsWith(sep + YAMM.getString("box.trash"))) {																frame.selectedbox = "deleted";							top.removeAllChildren();							del.delete();							top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"								+ YAMM.getString("box.inbox"))));							top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"								+ YAMM.getString("box.outbox"))));							if (sentbox) {								top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"									+ YAMM.getString("box.sent"))));							}							createNodes(top, new File(YAMM.home + "/boxes/"));							top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"								+ YAMM.getString("box.trash")))); 							updateUI();							expandRow(0);							frame.mailList.popup = new JPopupMenu();							frame.mailList.popup.setInvoker(frame.mailList);							frame.mailList.createPopup(((mainTable)frame.mailList).popup);						}					} else if(del.exists()) {						if (!del.delete()) {							Object[] args = {del.toString()};							new MsgDialog(frame, YAMM.getString("msg.error"), 								YAMM.getString("msg.file.delete-dir", args));						} else {							frame.selectedbox = "deleted";							top.removeAllChildren();							top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"									+ YAMM.getString("box.inbox"))));							top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"								+ YAMM.getString("box.outbox"))));													if (sentbox) {								top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"									+ YAMM.getString("box.sent"))));							}							createNodes(top, new File(YAMM.home + "/boxes/"));							top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/"								+ YAMM.getString("box.trash"))));							updateUI();							expandRow(0);						}					}				}			}		}