I'm using Mac OS X Mavericks and JDK 1.7.45 to package a Swing application using the javafxpackager tool for Mac. Unfortunately the end result looks like this (hid the icon/name):
Scrolling a bit to the right clarifies the picture:
Apparently the Applications image was placed incorrectly within the DMG. I have no idea how that can happen or what I might have done that triggered this, I just used the standard NetBeans packaging script. Any hints or directions would be appreciated.
OK this turned out to be rather simple, it seems that the tool generates the script:
Which is problematic since it only delays for 5 (I assume seconds) so I increased this to 20 and it worked. The script should be placed under
package/macosx/MyApplication-dmg-setup.scpt
.