private JDialog createSizeDialog() {

		String s = getInternationalText("ResizeContainer");
		final JDialog dialog = new JDialog(JOptionPane.getFrameForComponent(this),
				s != null ? s : "Set Container Size", true);
		dialog.setSize(200, 200);
		dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);

		final IntegerTextField wField = new IntegerTextField(jmolContainer.getWidth(), 300, 1200);
		final IntegerTextField hField = new IntegerTextField(jmolContainer.getHeight(), 200, 1000);
		ActionListener okListener = new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				jmolContainer.setViewerSize(new Dimension(wField.getValue(), hField.getValue()));
				dialog.dispose();
				jmolContainer.notifyChange();
			}
		};
		wField.addActionListener(okListener);
		hField.addActionListener(okListener);

		JPanel p = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));
		s = getInternationalText("Width");
		p.add(new JLabel((s != null ? s : "Width") + " (" + wField.getMinValue() + "-" + wField.getMaxValue()
				+ " pixels):"));
		p.add(wField);
		s = getInternationalText("Height");
		p.add(new JLabel((s != null ? s : "Height") + " (" + hField.getMinValue() + "-" + hField.getMaxValue()
				+ " pixels):"));
		p.add(hField);

		dialog.getContentPane().add(p, BorderLayout.CENTER);

		p = new JPanel(new FlowLayout(FlowLayout.RIGHT));
		s = getInternationalText("OK");
		JButton b = new JButton(s != null ? s : "OK");
		b.addActionListener(okListener);
		p.add(b);

		s = getInternationalText("Cancel");
		b = new JButton(s != null ? s : "Cancel");
		b.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dialog.dispose();
			}
		});
		p.add(b);

		dialog.getContentPane().add(p, BorderLayout.SOUTH);

		dialog.pack();
		dialog.setLocationRelativeTo(this);

		dialog.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				dialog.dispose();
			}

			public void windowActivated(WindowEvent e) {
				wField.selectAll();
				wField.requestFocusInWindow();
			}
		});

		return dialog;

	}