licence text height control is now correct

git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@265 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
angryziber 2008-03-02 15:49:28 +00:00
parent 9bf171028b
commit a776212e44

View File

@ -84,7 +84,9 @@ public class AboutDialog extends AbstractModalDialog {
Button button = createCloseButton();
Text licenseText = new Text(shell, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY | SWT.V_SCROLL | SWT.WRAP);
licenseText.setBounds(leftBound, systemLabel.getBounds().y + systemLabel.getBounds().height + 10, shell.getClientArea().width - leftBound - 10, button.getLocation().y - 174);
licenseText.setBounds(leftBound, systemLabel.getBounds().y + systemLabel.getBounds().height + 10,
shell.getClientArea().width - leftBound - 10,
button.getLocation().y - systemLabel.getBounds().y - systemLabel.getBounds().height - 20);
licenseText.setBackground(shell.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
licenseText.setText("Licensed under the GNU General Public License Version 2\n\n" +
Version.NAME + " is free software; you can redistribute it and/or " +
@ -99,7 +101,6 @@ public class AboutDialog extends AbstractModalDialog {
"along with this program; if not, write to the Free Software " +
"Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA " +
"02110-1301, USA, or visit http://www.fsf.org/");
}
}