for(int i = 0; i < recentFileCount; i++)
for(int i = recentVector.size() - 1; i >= recentVector.size() - recentFileCount; i--)
	public void setPopupMenuVisible(boolean b)	{		if(b)		{			final View view = EditAction.getView(this);			if(getMenuComponentCount() != 0)				removeAll();			ActionListener actionListener = new ActionListener()			{				public void actionPerformed(ActionEvent evt)				{					jEdit.openFile(view,evt.getActionCommand());					view.getStatus().setMessage(null);				}			};			MouseListener mouseListener = new MouseAdapter()			{				public void mouseEntered(MouseEvent evt)				{					view.getStatus().setMessage(						((JMenuItem)evt.getSource())						.getActionCommand());				}				public void mouseExited(MouseEvent evt)				{					view.getStatus().setMessage(null);				}			};			Vector recentVector = BufferHistory.getBufferHistory();			if(recentVector.size() == 0)			{				add(GUIUtilities.loadMenuItem("no-recent"));				return;			}			/*			 * While recentVector has 50 entries or so, we only display			 * a few of those in the menu (otherwise it will be way too			 * long)			 */			int recentFileCount = Math.min(recentVector.size(),				Integer.parseInt(jEdit.getProperty("history")));			for(int i = 0; i < recentFileCount; i++)			{				String path = ((BufferHistory.Entry)recentVector					.elementAt(i)).path;				VFS vfs = VFSManager.getVFSForPath(path);				JMenuItem menuItem = new JMenuItem(vfs.getFileName(path));				menuItem.setActionCommand(path);				menuItem.addActionListener(actionListener);				menuItem.addMouseListener(mouseListener);				add(menuItem);			}		}		super.setPopupMenuVisible(b);	}