aboutdlg: include version/vendor of Java run-time in About dialog box
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@593 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
9c5b1fca33
commit
4f4f166cca
2 changed files with 4 additions and 1 deletions
|
@ -1356,6 +1356,9 @@ public class MainWindow extends JFrame
|
|||
{
|
||||
String version = getClass().getPackage().getImplementationVersion();
|
||||
String versionStr = MessageFormat.format(strings.getString("main.version_string"), version);
|
||||
versionStr = versionStr.replace("%java.version%", System.getProperty("java.version"));
|
||||
versionStr = versionStr.replace("%java.vendor%", System.getProperty("java.vendor"));
|
||||
|
||||
JLabel appNameLbl = new JLabel(versionStr);
|
||||
JLabel appDetailsLbl = new JLabel(strings.getString("main.about_text"));
|
||||
JComponent [] inputs = new JComponent[] { appNameLbl, appDetailsLbl };
|
||||
|
|
|
@ -17,7 +17,7 @@ main.population_label = Population:
|
|||
main.error_caption = Error
|
||||
main.tools_caption = Tools
|
||||
main.about_caption = About MicropolisJ
|
||||
main.version_string = Version {0}
|
||||
main.version_string = Version {0} (Java %java.version%, %java.vendor%)
|
||||
main.caption_unnamed_city = MicropolisJ
|
||||
main.caption_named_city = {0} - MicropolisJ
|
||||
main.about_text = <html>\
|
||||
|
|
Reference in a new issue