void show(final Parameter[] p) {
		final XYGrapher graph = new XYGrapher();
		graph.addSnapshotListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				JComponent c = (JComponent) e.getSource();
				Object g = c.getClientProperty("graph");
				if (g instanceof XYGrapher) {
					model.notifyPageComponentListeners(new PageComponentEvent(((XYGrapher) g).getGraph(),
							PageComponentEvent.SNAPSHOT_TAKEN));
				}
			}
		});
		new SwingWorker("Mvd") {
			public Object construct() {
				Curve[] c = new Curve[p.length];
				double[] data;
				for (int i = 0; i < p.length; i++) {
					data = compute(p[i]);
					if (data == null)
						return null;
					c[i] = new Curve();
					c[i].setLegend(new Legend(Element.idToName(p[i].element) + ":" + p[i].direction + "(" + i + ")",
							200, 50 + i * 15));
					switch (i) {
					case 1:
						c[i].setFlavor(new CurveFlavor(Color.blue));
						break;
					case 2:
						c[i].setFlavor(new CurveFlavor(Color.red));
						break;
					case 3:
						c[i].setFlavor(new CurveFlavor(Color.magenta));
						break;
					case 4:
						c[i].setFlavor(new CurveFlavor(Color.orange));
						break;
					}
					c[i].setData(data);
				}
				return c;
			}

			public void finished() {
				Curve[] c = (Curve[]) getValue();
				if (c != null) {
					graph.getXAxis().setTitleText("v (m/s)");
					graph.getYAxis().setTitleText("Probability density (s/m)");
					for (int i = 0; i < c.length; i++)
						graph.append(c[i]);
					JDialog dialog = new JDialog(JOptionPane.getFrameForComponent(model.view),
							"Maxwell distribution(s)", false);
					graph.setDialog(dialog);
					dialog.getContentPane().add(graph, BorderLayout.CENTER);
					dialog.setSize(300, 300);
					dialog.setLocation(200, 200);
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.pack();
					dialog.setVisible(true);
				}
				else {
					JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(model.view),
							"At least one of the selected Maxwell distributions has no data.", "No Data",
							JOptionPane.INFORMATION_MESSAGE);
				}
			}
		}.start();
	}