better layout of range feeder

This commit is contained in:
Anton Keks 2014-05-13 20:21:38 +03:00
parent 0b5ae6d888
commit 95f3bc4972

View File

@ -52,7 +52,7 @@ public class RangeFeederGUI extends AbstractFeederGUI {
}
public void initialize(int rowHeight) {
setLayout(new GridLayout(4, false));
setLayout(new GridLayout(5, false));
ipRangeLabel = new Label(this, SWT.NONE);
startIPText = new Text(this, SWT.BORDER);
@ -72,6 +72,10 @@ public class RangeFeederGUI extends AbstractFeederGUI {
hostnameText.setLayoutData(new GridData(textWidth, -1));
netmaskCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
((GridData)endIPText.getLayoutData()).horizontalSpan = 2;
GridData ipUpData = new GridData(); ipUpData.horizontalSpan = 2;
ipUpButton.setLayoutData(ipUpData);
ipRangeLabel.setText(getLabel("feeder.range") + ":");
ipRangeLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
hostnameLabel.setText(getLabel("feeder.range.hostname") + ":");