+ _altitudeFactorField = new JTextField("1.0");
+ centralPanel.add(_altitudeFactorField);
+
+ // Radio buttons for style - balls on sticks or tubes
+ JPanel stylePanel = new JPanel();
+ stylePanel.setLayout(new GridLayout(0, 2, 10, 4));
+ JLabel styleLabel = new JLabel(I18nManager.getText("dialog.exportpov.modelstyle"));
+ styleLabel.setHorizontalAlignment(SwingConstants.TRAILING);
+ stylePanel.add(styleLabel);
+ JPanel radioPanel = new JPanel();
+ radioPanel.setLayout(new BoxLayout(radioPanel, BoxLayout.Y_AXIS));
+ _ballsAndSticksButton = new JRadioButton(I18nManager.getText("dialog.exportpov.ballsandsticks"));
+ _ballsAndSticksButton.setSelected(false);
+ radioPanel.add(_ballsAndSticksButton);
+ JRadioButton tubesButton = new JRadioButton(I18nManager.getText("dialog.exportpov.tubesandwalls"));
+ tubesButton.setSelected(true);
+ radioPanel.add(tubesButton);
+ ButtonGroup group = new ButtonGroup();
+ group.add(_ballsAndSticksButton); group.add(tubesButton);
+ stylePanel.add(radioPanel);
+
+ // Panel for the base image
+ JPanel imagePanel = new JPanel();
+ imagePanel.setLayout(new BorderLayout(10, 4));
+ imagePanel.add(new JLabel(I18nManager.getText("dialog.exportpov.baseimage") + ": "), BorderLayout.WEST);
+ _baseImageLabel = new JLabel("Typical sourcename");
+ imagePanel.add(_baseImageLabel, BorderLayout.CENTER);
+ _baseImageButton = new JButton(I18nManager.getText("button.edit"));
+ _baseImageButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent event) {
+ changeBaseImage();
+ }
+ });
+ imagePanel.add(_baseImageButton, BorderLayout.EAST);
+ // Put these image controls inside a holder panel with an outline
+ JPanel imageHolderPanel = new JPanel();
+ imageHolderPanel.setBorder(BorderFactory.createCompoundBorder(
+ BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), BorderFactory.createEmptyBorder(4, 4, 4, 4))
+ );
+ imageHolderPanel.setLayout(new BorderLayout());
+ imageHolderPanel.add(imagePanel, BorderLayout.NORTH);
+
+ // add these panels to the holder panel
+ JPanel holderPanel = new JPanel();
+ holderPanel.setLayout(new BorderLayout(5, 5));
+ JPanel boxPanel = new JPanel();
+ boxPanel.setLayout(new BoxLayout(boxPanel, BoxLayout.Y_AXIS));
+ boxPanel.add(centralPanel);
+ boxPanel.add(Box.createVerticalStrut(4));
+ boxPanel.add(stylePanel);
+ boxPanel.add(Box.createVerticalStrut(4));
+ boxPanel.add(imageHolderPanel);
+ holderPanel.add(boxPanel, BorderLayout.CENTER);
+
+ panel.add(holderPanel, BorderLayout.CENTER);