about dialog rearranged slightly and now includes Java version

git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@185 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
angryziber 2007-07-25 22:41:37 +00:00
parent ae53418b03
commit adcdeeebc7
2 changed files with 3 additions and 2 deletions

View File

@ -103,7 +103,7 @@ text.fetchers.selectedList=Selected fetchers
text.fetchers.availableList=Available fetchers
text.fetchers.info=Fetcher information:
text.fetchers.info.notAvailable=Unfortunately, no additional information about this fetcher is available.
text.about=%NAME\n\nVersion %VERSION (build %BUILD)\n%COPYLEFT\n\n<a>%WEBSITE</a>\n<a>%MAILTO</a>\n\nThis is an Open Source Software released under the GPL.
text.about=%NAME\n\nVersion: %VERSION\nBuild: %BUILD\n\n%COPYLEFT\nVisit <a>%WEBSITE</a>\n\nJRE: %JAVA
text.gettingStarted=Dummy
text.gettingStarted1=Angry IP Scanner is an IP address scanner tool.\n\nIt is used for scanning IP addresses for finding alive hosts, gathering any kind of needed information about each host.
text.gettingStarted2=Main terminology:\n\nFeeder - generator of IP addresses for scanning. Angry IP Scanner provides various kinds of feeders: IP Range, Random, and IP List File. You can select a feeder using the combo box next to the "Start" button.\n\nFetcher - gathers specific information about a host, e.g. ping time, hostname, open ports. Feeders usually represent columns in the scanning results list.

View File

@ -53,6 +53,7 @@ public class AboutDialog extends AbstractModalDialog {
text = text.replaceAll("%NAME", Version.NAME);
text = text.replaceAll("%VERSION", Version.getVersion());
text = text.replaceAll("%BUILD", Version.getBuildNumber());
text = text.replaceAll("%JAVA", System.getProperty("java.vm.vendor") + " " + System.getProperty("java.vm.version") + ", " + System.getProperty("os.name"));
text = text.replaceAll("%COPYLEFT", Version.COPYLEFT);
text = text.replaceAll("%WEBSITE", Version.WEBSITE);
text = text.replaceAll("%MAILTO", Version.MAILTO);
@ -64,7 +65,7 @@ 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, 140, shell.getClientArea().width - leftBound - 10, button.getLocation().y - 150);
licenseText.setBounds(leftBound, textLabel.getBounds().y+textLabel.getBounds().height+10, shell.getClientArea().width - leftBound - 10, button.getLocation().y - 150);
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 " +