From 3453bdf5c246caec0b67447889e653fe9e0cc554 Mon Sep 17 00:00:00 2001 From: angryziber Date: Wed, 3 Jan 2007 23:12:16 +0000 Subject: [PATCH] minor corrections after changing of icon sizes git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@108 375186e5-ef17-0410-b0b6-91563547dcda --- ipscan/src/net/azib/ipscan/gui/GettingStartedDialog.java | 5 +++-- ipscan/src/net/azib/ipscan/gui/feeders/RandomFeederGUI.java | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ipscan/src/net/azib/ipscan/gui/GettingStartedDialog.java b/ipscan/src/net/azib/ipscan/gui/GettingStartedDialog.java index 27b262ef..5b656bb0 100755 --- a/ipscan/src/net/azib/ipscan/gui/GettingStartedDialog.java +++ b/ipscan/src/net/azib/ipscan/gui/GettingStartedDialog.java @@ -43,13 +43,14 @@ public class GettingStartedDialog extends AbstractModalDialog { shell.setSize(new Point(400, 240)); Label iconLabel = new Label(shell, SWT.ICON); - iconLabel.setBounds(10, 10, 0, 0); + iconLabel.setLocation(10, 10); if (parent != null) { iconLabel.setImage(parent.getImage()); shell.setImage(parent.getImage()); } iconLabel.pack(); + int leftBound = iconLabel.getBounds().width + 20; closeButton = new Button(shell, SWT.NONE); closeButton.setText(Labels.getLabel("button.close")); @@ -61,7 +62,7 @@ public class GettingStartedDialog extends AbstractModalDialog { positionButtons(nextButton, closeButton); gettingStartedText = new Text(shell, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY | SWT.V_SCROLL | SWT.WRAP); - gettingStartedText.setBounds(60, 10, shell.getClientArea().width - 70, nextButton.getLocation().y - 20); + gettingStartedText.setBounds(leftBound, 10, shell.getClientArea().width - leftBound - 10, closeButton.getLocation().y - 20); gettingStartedText.setBackground(shell.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); closeButton.addListener(SWT.Selection, new Listener() { diff --git a/ipscan/src/net/azib/ipscan/gui/feeders/RandomFeederGUI.java b/ipscan/src/net/azib/ipscan/gui/feeders/RandomFeederGUI.java index 24f78b48..80f8bc84 100755 --- a/ipscan/src/net/azib/ipscan/gui/feeders/RandomFeederGUI.java +++ b/ipscan/src/net/azib/ipscan/gui/feeders/RandomFeederGUI.java @@ -123,6 +123,7 @@ public class RandomFeederGUI extends AbstractFeederGUI { hostnameLabel.setLayoutData(formData); ipUpButton.setImage(new Image(getDisplay(), Labels.getInstance().getImageAsStream("button.ipUp.img"))); + ipUpButton.setText(Labels.getLabel("button.ipUp")); ipUpButton.addSelectionListener(hostnameSelectionListener); formData = new FormData(); formData.top = new FormAttachment(ipPrototypeText);