createNodes(top, new File(YAMM.home + sep + "boxes" + sep)); top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/" + YAMM.getString("box.trash"))));
createNodes(top, new File(Utilities.replace(YAMM.home + "/boxes/"))); top.add(new DefaultMutableTreeNode(new File(Utilities.replace(YAMM.home + "/boxes/" + YAMM.getString("box.trash"))))); expandRow(0); */
	public mainJTree(YAMM frame2, mainToolBar tbar2) { 		this.frame = frame2;		this.tbar = tbar2;		sentbox = YAMM.getProperty("sentbox", "false").equals("true");		new DropTarget(this, // component				DnDConstants.ACTION_COPY_OR_MOVE, // actions				this); //DropTargetListener		tm = new DefaultTreeModel(top);		setModel(tm);		BoxTreeRenderer rend = new BoxTreeRenderer();		rend.setFont(new Font("SansSerif", Font.PLAIN, 12));		setCellRenderer(rend); //new myTreeRenderer());		getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);		addMouseListener(mouseListener2);		addTreeSelectionListener(new TreeSelectionListener() {			public void valueChanged(TreeSelectionEvent e) {				DefaultMutableTreeNode node = (DefaultMutableTreeNode)(e.getPath().getLastPathComponent());				if (!(node.toString()).equals(YAMM.getString("box.boxes"))) {					File box = new File(node.toString());					if (node.toString().equals("deleted") || !box.exists()) {						frame.selectedbox = YAMM.home + YAMM.sep + "boxes" + YAMM.sep + YAMM.getString("box.inbox");						Mailbox.createList(frame.selectedbox, frame.listOfMails);						frame.mailList.clearSelection();						frame.mailList.updateUI();					} else if (!box.isDirectory()) {						frame.selectedbox = node.toString();						Mailbox.createList(frame.selectedbox, frame.listOfMails);						frame.mailList.clearSelection();						frame.mailList.updateUI();					}				}				if ( ((mainTable)frame.mailList).getSelectedRow() != -1 &&						!(((JTable)frame.mailList).getSelectedRow() >= frame.listOfMails.size())) {					tbar.reply.setEnabled(true);					tbar.forward.setEnabled(true);					//tbar.print.setEnabled(true);				} else {					tbar.reply.setEnabled(false);					tbar.forward.setEnabled(false);					//tbar.print.setEnabled(false);				}			}		});		String sep = YAMM.sep;		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 + sep + "boxes" + sep));		top.add(new DefaultMutableTreeNode(new File(YAMM.home + "/boxes/" +						YAMM.getString("box.trash")))); 		treepop = new JPopupMenu("Test");		treepop.setInvoker(this);		expandRow(0);		// adds items to the myPopup JPopupMenu		JMenuItem mi = new JMenuItem(YAMM.getString("tree.new.box"));		mi.setFont(new Font("SansSerif", Font.PLAIN, 10));		mi.addActionListener(treepoplistener);		treepop.add(mi); 		mi = new JMenuItem(YAMM.getString("tree.new.group"));		mi.setFont(new Font("SansSerif", Font.PLAIN, 10));		mi.addActionListener(treepoplistener);		treepop.add(mi);		treepop.addSeparator();		mi = new JMenuItem(YAMM.getString("button.delete"));		mi.setFont(new Font("SansSerif", Font.PLAIN, 10));		mi.addActionListener(treepoplistener);		treepop.add(mi);	}