On Feb 13, 2008, at 9:51 AM, Dipl. Ing. RĂ¼diger Pape wrote:
i am facing the problem to quit a swing application by using apple-q.
For sure, there a 2 possible solutions:
1. Shutdown Hook
2. MRJQuitHandler from MRJToolkit
Unfortunately, shutdown hook hangs, if a want to show a confirm
dialog and MRJQuitHandler is deprecated.
Has anyone found a solution for that issue?
Guten tag!
I think this is already taken care of if you bundle your JAR or JARs
into a Application Bundle.
I wrote an ANT task several years ago called "JarBundler", not to be
confused with Apple's "Jar Bundler" -- my bad, which wraps a JAR file
in an Apple Application Bundle. This process creates the "Application"
menu for you.
Install the 'jarbundler-1.9.jar' into your ANT directory -- then execute
$ ant simple
to build the simple demo app and you should see the Command-Q and it
should be handled just fine.
--will
Ein amerikanischer Deutschlerner und Java-programmierer _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden