private void createContentPane() {

		if (contentPane != null)
			return;

		contentPane = new JPanel(new BorderLayout());

		JPanel p = new JPanel(new FlowLayout(FlowLayout.RIGHT));
		contentPane.add(p, BorderLayout.SOUTH);

		String s = Modeler.getInternationalText("OKButton");
		JButton button = new JButton(s != null ? s : "OK");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				confirm();
				dialog.dispose();
				cancel = false;
			}
		});
		p.add(button);

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

		p = new JPanel(new SpringLayout());
		p.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
		contentPane.add(p, BorderLayout.NORTH);

		// row 1
		s = Modeler.getInternationalText("BackgroundColorLabel");
		JLabel label = new JLabel(s != null ? s : "Background color", SwingConstants.LEFT);
		p.add(label);
		bgComboBox = new ColorComboBox(pagePeriodicTable);
		bgComboBox.setRequestFocusEnabled(false);
		bgComboBox.setToolTipText("Select the background color.");
		p.add(bgComboBox);

		// row 2
		s = Modeler.getInternationalText("BorderLabel");
		label = new JLabel(s != null ? s : "Border", SwingConstants.LEFT);
		p.add(label);
		borderComboBox = new JComboBox(BorderManager.BORDER_TYPE);
		borderComboBox.setRenderer(new ComboBoxRenderer.BorderCell());
		borderComboBox.setBackground(p.getBackground());
		borderComboBox.setToolTipText("Select the border type.");
		p.add(borderComboBox);

		ModelerUtilities.makeCompactGrid(p, 2, 2, 5, 5, 15, 5);

		p = new JPanel();
		p.setBorder(BorderFactory.createEtchedBorder());
		contentPane.add(p, BorderLayout.CENTER);

		s = Modeler.getInternationalText("TransparencyCheckBox");
		transparentCheckBox = new JCheckBox(s != null ? s : "Transparent");
		transparentCheckBox.setToolTipText("Set to be transparent.");
		p.add(transparentCheckBox);

		s = Modeler.getInternationalText("Mute");
		muteCheckBox = new JCheckBox(s != null ? s : "Mute");
		muteCheckBox.setToolTipText("Mute (no sound effect).");
		p.add(muteCheckBox);

	}