private void initialize() { setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10)); GridBagLayoutPanel panel = new GridBagLayoutPanel(); GridBagLayoutPanel aux = new GridBagLayoutPanel(); aux.addComponent(PluginServices.getText(this, "field_to_be_labeled") + ":", getCmbTextField()); aux.addComponent(getRdBtnHeightField(), getCmbHeightField()); aux.addComponent(getRdBtnFixedHeight(), getTxtHeightField()); aux.addComponent(PluginServices.getText(this, "rotation_height") + ":", getCmbRotationField()); aux.addComponent(PluginServices.getText(this, "units") + ":", getCmbUnits()); aux.addComponent(PluginServices.getText(this, ""), getCmbReferenceSystem()); panel.add(aux); aux = new GridBagLayoutPanel(); aux.addComponent(getChooseFontBut(), new JBlank(20, 20)); GridBagLayoutPanel aux2 = new GridBagLayoutPanel(); aux2.setBorder(BorderFactory.createTitledBorder(null, PluginServices.getText(this, "color"))); aux2.addComponent(getRdBtnFixedColor(), getColorChooser()); aux2.addComponent(getRdBtnColorField(), getCmbColorField()); aux.addComponent(aux2); panel.add(new JBlank(20, 20)); panel.add(aux); add(panel); ButtonGroup group = new ButtonGroup(); group.add(getRdBtnFixedHeight()); group.add(getRdBtnHeightField()); ButtonGroup colorGroup = new ButtonGroup(); colorGroup.add(getRdBtnFixedColor()); colorGroup.add(getRdBtnColorField()); // getRdBtnHeightField().setEnabled(true); }