private KeyedComboBoxModel whitespaceModel;
private KeyedComboBoxModel textAlignModel;
public ParagraphPropertiesPane()
{
setLayout(new VerticalLayout());
leftAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Left"));
centerAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Center"));
rightAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Right"));
final ButtonGroup halignGroup = new ButtonGroup();
halignGroup.add(leftAlignButton);
halignGroup.add(centerAlignButton);
halignGroup.add(rightAlignButton);
topAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Top"));
middleAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Middle"));
bottomAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Bottom"));
final ButtonGroup valignGroup = new ButtonGroup();
valignGroup.add(topAlignButton);
valignGroup.add(middleAlignButton);
valignGroup.add(bottomAlignButton);
textAlignModel = createTextAlignmentModel();
whitespaceModel = createWhitspaceModel();
final JComboBox textAlignmentComboBox = new JComboBox(textAlignModel);
wrapTextCheckbox = new JCheckBox(Messages.getString("ParagraphPropertiesPane.AllowTextWrapping"));
lineHeightField = new JTextField();
lineHeightField.setColumns(10);
final JComboBox whitespaceComboBox = new JComboBox(whitespaceModel);
final JPanel halignPanel = new JPanel();
halignPanel.setLayout(new VerticalLayout());
halignPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("ParagraphPropertiesPane.HorizontalAlignment")));
halignPanel.add(leftAlignButton);
halignPanel.add(centerAlignButton);
halignPanel.add(rightAlignButton);
final JPanel valignPanel = new JPanel();
valignPanel.setLayout(new VerticalLayout());
valignPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("ParagraphPropertiesPane.VerticalAlignment")));
valignPanel.add(topAlignButton);
valignPanel.add(middleAlignButton);
valignPanel.add(bottomAlignButton);