public DiffusionMenu() {
		super("Diffusion");
		setEnabled(true);
		
		JMenuItem isotropic = new JMenuItem("Isotropic");
		isotropic.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				Panel panel = (((Window) getTopLevelAncestor()).getPanel());
				if (panel.getImage() == null) {
					return;
				}
				JDialog iso = new IsotropicDiffusionDialog(panel);
				iso.setVisible(true);
			}
		});
		
		JMenuItem anisotropic = new JMenuItem("Anisotropic");
		anisotropic.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				Panel panel = (((Window) getTopLevelAncestor()).getPanel());
				if (panel.getImage() == null) {
					return;
				}
				JDialog ani = new AnisotropicDiffusionDialog(panel);
				ani.setVisible(true);
			}
		});
		
		add(isotropic);
		add(new JSeparator());
		add(anisotropic);
	}