From f42e9e92ee89a50b4bc5f995e41513f4193e26b5 Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Mon, 25 Jan 2021 19:29:30 +0200 Subject: [PATCH] correct netmask width on Linux only - Win/Mac seem to be better without --- src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java b/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java index 2edb206a..a26abd24 100644 --- a/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java +++ b/src/net/azib/ipscan/gui/feeders/RangeFeederGUI.java @@ -113,9 +113,11 @@ public class RangeFeederGUI extends AbstractFeederGUI { netmaskCombo.setToolTipText(getLabel("feeder.range.netmask.tooltip")); pack(); - Rectangle comboBounds = netmaskCombo.getBounds(); - Rectangle endIPBounds = endIPText.getBounds(); - netmaskCombo.setBounds(comboBounds.x, comboBounds.y, endIPBounds.x + endIPBounds.width - comboBounds.x, comboBounds.height); + 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); + } // do this stuff asynchronously (to show GUI faster) asyncFillLocalHostInfo(hostnameText, startIPText);