diff --git a/graphics/romraider-ico-large.gif b/graphics/romraider-ico-large.gif new file mode 100644 index 00000000..c926be8f Binary files /dev/null and b/graphics/romraider-ico-large.gif differ diff --git a/src/com/romraider/Version.java.template b/src/com/romraider/Version.java.template index 78347790..e01debd6 100644 --- a/src/com/romraider/Version.java.template +++ b/src/com/romraider/Version.java.template @@ -23,6 +23,8 @@ package com.romraider; +import javax.swing.ImageIcon; + public final class Version { public static final String PRODUCT_NAME = "@name.package@"; public static final String VERSION = "@version.major@.@version.minor@.@version.patch@ @version.extra@"; @@ -32,6 +34,7 @@ public final class Version { public static final String ECU_DEFS_URL = "@ecudefsurl@"; public static final String LOGGER_DEFS_URL = "@loggerdefsurl@"; public static final String RELEASE_NOTES = "@release_notes@"; + public static final ImageIcon ABOUT_ICON = new ImageIcon("graphics/romraider-ico-large.gif"); private Version() { } diff --git a/src/com/romraider/logger/ecu/ui/swing/menubar/action/AboutAction.java b/src/com/romraider/logger/ecu/ui/swing/menubar/action/AboutAction.java index 431da437..42281472 100644 --- a/src/com/romraider/logger/ecu/ui/swing/menubar/action/AboutAction.java +++ b/src/com/romraider/logger/ecu/ui/swing/menubar/action/AboutAction.java @@ -4,10 +4,12 @@ import static com.romraider.Version.BUILDNUMBER; import static com.romraider.Version.PRODUCT_NAME; import static com.romraider.Version.SUPPORT_URL; import static com.romraider.Version.VERSION; +import static com.romraider.Version.ABOUT_ICON; import com.romraider.logger.ecu.EcuLogger; import static javax.swing.JOptionPane.INFORMATION_MESSAGE; import static javax.swing.JOptionPane.showMessageDialog; import java.awt.event.ActionEvent; +import javax.swing.ImageIcon; public final class AboutAction extends AbstractAction { @@ -20,6 +22,6 @@ public final class AboutAction extends AbstractAction { + "Version: " + VERSION + " [build #" + BUILDNUMBER + "]\n" + SUPPORT_URL; String title = "About " + PRODUCT_NAME; - showMessageDialog(logger, message, title, INFORMATION_MESSAGE); + showMessageDialog(logger, message, title, INFORMATION_MESSAGE, ABOUT_ICON); } } diff --git a/src/com/romraider/swing/ECUEditorMenuBar.java b/src/com/romraider/swing/ECUEditorMenuBar.java index 8086ad84..a05dbd02 100644 --- a/src/com/romraider/swing/ECUEditorMenuBar.java +++ b/src/com/romraider/swing/ECUEditorMenuBar.java @@ -28,6 +28,7 @@ import static com.romraider.Version.ECU_DEFS_URL; import static com.romraider.Version.PRODUCT_NAME; import static com.romraider.Version.SUPPORT_URL; import static com.romraider.Version.VERSION; +import static com.romraider.Version.ABOUT_ICON; import com.romraider.logger.ecu.EcuLogger; import com.romraider.logger.utec.gui.JutecGUI; import com.romraider.maps.Rom; @@ -304,12 +305,12 @@ public class ECUEditorMenuBar extends JMenuBar implements ActionListener { RamTuneTestApp.startTestApp(DISPOSE_ON_CLOSE); } else if (e.getSource() == about) { - //TODO: make a separate About class to get a better dialog box with graphic, hyperlink, etc. + //TODO: make a separate About class to get a better dialog box with hyperlink, etc. String message = PRODUCT_NAME + " ECU Editor\n" + "Version: " + VERSION + " [build #" + BUILDNUMBER + "]\n" + SUPPORT_URL; String title = "About " + PRODUCT_NAME; - showMessageDialog(parent, message, title, INFORMATION_MESSAGE); + showMessageDialog(parent, message, title, INFORMATION_MESSAGE, ABOUT_ICON); } }