public JDialog createDialog(Component owner, boolean modal) {
		switch (selectedInteraction) {
		case 1:
			lj.setLJFunction(Nt.getSigma(), Nt.getEpsilon());
			break;
		case 2:
			lj.setLJFunction(Pl.getSigma(), Pl.getEpsilon());
			break;
		case 3:
			lj.setLJFunction(Ws.getSigma(), Ws.getEpsilon());
			break;
		case 4:
			lj.setLJFunction(Ck.getSigma(), Ck.getEpsilon());
			break;
		}
		if (model != null)
			setModel(model);
		String s = MDView.getInternationalText("LennardJonesInteractionSetting");
		final JDialog d = new JDialog(JOptionPane.getFrameForComponent(owner), s != null ? s
				: "Set Lennard-Jones Interactions", modal);
		d.setResizable(false);
		d.setSize(550, 400);
		d.getContentPane().setLayout(new BorderLayout());
		d.getContentPane().add(lj, BorderLayout.CENTER);
		d.getContentPane().add(tabbedPane, BorderLayout.NORTH);
		d.getContentPane().add(buttonPanel, BorderLayout.SOUTH);
		d.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				d.getContentPane().removeAll();
				d.dispose();
			}
		});
		ActionListener[] al = closeButton.getActionListeners();
		for (ActionListener i : al)
			closeButton.removeActionListener(i);
		closeButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				d.getContentPane().removeAll();
				d.dispose();
			}
		});
		d.pack();
		d.setLocationRelativeTo(owner);
		return d;
	}