mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
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:
parent
0b6774ceaf
commit
3453bdf5c2
@ -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() {
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user