Index: trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java	(revision 12122)
+++ trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java	(revision 12123)
@@ -40,4 +40,5 @@
         // They just insist on painting themselves...
         Utils.updateSystemProperty("apple.laf.useScreenMenuBar", "true");
+        Utils.updateSystemProperty("apple.awt.application.name", "JOSM");
     }
 
@@ -78,4 +79,17 @@
     }
 
+    /**
+     * Registers Apple handlers.
+     * @param appClass application class
+     * @param quitHandler quit handler class
+     * @param aboutHandler about handler class
+     * @param openFilesHandler open file handler class
+     * @param preferencesHandler preferences handler class
+     * @param proxy proxy
+     * @param appInstance application instance (instance of {@code appClass})
+     * @throws IllegalAccessException in case of reflection error
+     * @throws InvocationTargetException in case of reflection error
+     * @throws NoSuchMethodException if any {@code set*Handler} method cannot be found
+     */
     protected void setHandlers(Class<?> appClass, Class<?> quitHandler, Class<?> aboutHandler,
             Class<?> openFilesHandler, Class<?> preferencesHandler, Object proxy, Object appInstance)
@@ -87,4 +101,10 @@
     }
 
+    /**
+     * Find Apple handler class in {@code com.apple.eawt} or {@code java.awt.desktop} packages.
+     * @param className simple class name
+     * @return class
+     * @throws ClassNotFoundException if the handler class cannot be found
+     */
     protected Class<?> findHandlerClass(String className) throws ClassNotFoundException {
         try {
