minor corrections after changing of icon sizes

git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@108 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
angryziber 2007-01-03 23:12:16 +00:00
parent 0b6774ceaf
commit 3453bdf5c2
2 changed files with 4 additions and 2 deletions

View File

@ -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() {

View File

@ -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);