diff --git a/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java b/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java index a26abd24..faf90afc 100644 --- a/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java +++ b/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java @@ -113,11 +113,11 @@ public class RangeFeederGUI extends AbstractFeederGUI { netmaskCombo.setToolTipText(getLabel("feeder.range.netmask.tooltip")); pack(); - if (Platform.LINUX) { - Rectangle comboBounds = netmaskCombo.getBounds(); - Rectangle endIPBounds = endIPText.getBounds(); - netmaskCombo.setBounds(comboBounds.x, comboBounds.y, endIPBounds.x + endIPBounds.width - comboBounds.x, comboBounds.height); - } + Rectangle comboBounds = netmaskCombo.getBounds(); + Rectangle endIPBounds = endIPText.getBounds(); + int width = endIPBounds.x + endIPBounds.width - comboBounds.x; + ((GridData) netmaskCombo.getLayoutData()).widthHint = width - 5; + pack(); // do this stuff asynchronously (to show GUI faster) asyncFillLocalHostInfo(hostnameText, startIPText);