VectorDisplay(Frame owner) {

		super(owner, "Customize Vector Display", false);
		setResizable(false);
		setSize(400, 400);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);

		JPanel p = new JPanel(new GridLayout(2, 2, 5, 5));

		comboBoxLineWidth = new JComboBox();
		comboBoxLineWidth.setRenderer(new ComboBoxRenderer.LineThickness());
		String s = MDView.getInternationalText("LineThickness");
		comboBoxLineWidth.setBorder(BorderFactory.createTitledBorder(s != null ? s : "Line Thickness"));
		comboBoxLineWidth.setBackground(p.getBackground());
		comboBoxLineWidth.addItem(new Float(LineWidth.STROKE_WIDTH_1));
		comboBoxLineWidth.addItem(new Float(LineWidth.STROKE_WIDTH_2));
		comboBoxLineWidth.addItem(new Float(LineWidth.STROKE_WIDTH_3));
		comboBoxLineWidth.addItem(new Float(LineWidth.STROKE_WIDTH_4));
		comboBoxLineWidth.addItem(new Float(LineWidth.STROKE_WIDTH_5));

		comboBoxLineStyle = new JComboBox();
		comboBoxLineStyle.setRenderer(new ComboBoxRenderer.LineStyles());
		s = MDView.getInternationalText("Style");
		comboBoxLineStyle.setBorder(BorderFactory.createTitledBorder(s != null ? s : "Style"));
		comboBoxLineStyle.setBackground(p.getBackground());
		comboBoxLineStyle.addItem(new Integer(LineStyle.STROKE_NUMBER_1));
		comboBoxLineStyle.addItem(new Integer(LineStyle.STROKE_NUMBER_2));
		comboBoxLineStyle.addItem(new Integer(LineStyle.STROKE_NUMBER_3));
		comboBoxLineStyle.addItem(new Integer(LineStyle.STROKE_NUMBER_4));
		comboBoxLineStyle.addItem(new Integer(LineStyle.STROKE_NUMBER_5));

		sliderLineLength = new JSlider(JSlider.HORIZONTAL, 1, 200, 50);
		sliderLineLength.setPaintLabels(false);
		sliderLineLength.setPaintTicks(false);
		sliderLineLength.setPaintTrack(true);
		sliderLineLength.setSnapToTicks(true);
		sliderLineLength.setMajorTickSpacing(2);
		sliderLineLength.setMinorTickSpacing(1);
		sliderLineLength.setPreferredSize(new Dimension(200, 50));
		s = MDView.getInternationalText("LineLength");
		sliderLineLength.setBorder(BorderFactory.createTitledBorder(s != null ? s : "Line Length"));

		comboBoxLineColor = new ColorComboBox(owner);
		s = MDView.getInternationalText("Color");
		comboBoxLineColor.setBorder(BorderFactory.createTitledBorder(s != null ? s : "Color"));
		comboBoxLineColor.setBackground(p.getBackground());

		p.add(comboBoxLineWidth);
		p.add(comboBoxLineStyle);
		p.add(comboBoxLineColor);
		p.add(sliderLineLength);

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

		p = new JPanel(new FlowLayout(FlowLayout.CENTER));

		Dimension dim = new Dimension(100, 20);

		s = MDView.getInternationalText("OKButton");
		JButton button = new JButton(s != null ? s : "OK");
		button.setPreferredSize(dim);
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				confirm();
				VectorDisplay.this.dispose();
			}
		});
		p.add(button);

		s = MDView.getInternationalText("CancelButton");
		button = new JButton(s != null ? s : "Cancel");
		button.setPreferredSize(dim);
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				VectorDisplay.this.dispose();
			}
		});
		p.add(button);

		s = MDView.getInternationalText("Apply");
		button = new JButton(s != null ? s : "Apply");
		button.setPreferredSize(dim);
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				confirm();
			}
		});
		p.add(button);

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

		pack();

	}