void updateBookmarks() {
		while (bookmarkMenu.getItemCount() > 4)
			bookmarkMenu.remove(4);
		JMenuItem menuItem = null;
		for (String key : BookmarkManager.sharedInstance().getBookmarks().keySet()) {
			final String url = BookmarkManager.sharedInstance().getBookmarks().get(key);
			menuItem = new JMenuItem(key);
			menuItem.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					editor.getPage().rememberViewPosition(false);
					navigator.visitLocation(url);
				}
			});
			bookmarkMenu.add(menuItem);
		}
	}