contentPane.setLayout(new GridBagLayout());
contentPane.setBorder(BorderFactory.createCompoundBorder
(BorderFactory.createTitledBorder(messages.getString("PageSetupDialog.PageSize")),
BorderFactory.createEmptyBorder(5, 5, 5, 5)));
GridBagConstraints gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 0;
gbc.gridy = 0;
contentPane.add(preDefinedPageSizeBox, gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 1;
gbc.gridy = 0;
gbc.gridwidth = 4;
gbc.weightx = 4;
contentPane.add(preDefinedPageSizeLabel, gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 1;
gbc.gridy = 1;
gbc.gridwidth = 4;
contentPane.add(pageFormatBox, gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 0;
gbc.gridy = 2;
contentPane.add(userDefinedPageSizeBox, gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 1;
gbc.gridy = 2;
gbc.gridwidth = 4;
contentPane.add(userDefinedPageSizeLabel, gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 1;
gbc.gridy = 3;
contentPane.add(new JLabel(messages.getString("PageSetupDialog.Width")), gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 2;
gbc.gridy = 3;
contentPane.add(pageWidthField, gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 3;
gbc.gridy = 3;
gbc.insets = new Insets(0, 5, 0, 0);
contentPane.add(new JLabel(messages.getString("PageSetupDialog.Height")), gbc);
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 4;
gbc.gridy = 3;
contentPane.add(pageHeightField, gbc);