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 };
|
||||
|
|
Reference in a new issue