String textString = "Text";
if (text != null) {
textString = text.getData();
}
JTextField textField = new JTextField(textString, 25);
textField.setActionCommand(TextFieldCommand);
textField.addActionListener(this);
textField.setMargin(new Insets(0, 1, 0, 1));
textField.setMinimumSize(new java.awt.Dimension(100, 20));
textField.setPreferredSize(new java.awt.Dimension(100, 20));
attributeBox.add(textField);
// JPanel palette =
// PaletteHelper.createHorizontalPanel("Rotation");
javax.swing.Box palette = javax.swing.Box.createHorizontalBox();
textField = new JTextField(Integer.toString((int) (text.getRotationAngle() * 180 / Math.PI)), 5);
textField.setActionCommand(TextRotationCommand);
textField.setToolTipText(i18n.get(EditableOMText.class,
"textField",
I18n.TOOLTIP,
"Text rotation in degrees"));
textField.setMargin(new Insets(0, 1, 0, 1));
textField.addActionListener(this);
textField.setMinimumSize(new java.awt.Dimension(30, 20));
textField.setPreferredSize(new java.awt.Dimension(30, 20));
palette.add(textField);
palette.add(new JLabel("\u00b0 "));
attributeBox.add(palette);
String[] sizesStrings = { "3", "5", "8", "10", "12", "14", "18", "20",