Thread-topic: Receiving files dragged to the Dock in a pure-Java app
>Currently, I'd like to allow a file generated by our application
(always either .rml or .pml extensions) to be dragged onto the
>app's Doc icon and it receive and load it.
>
> Our app is distributed using Java Web Start, so I can't do any
of the fancy bundle creation stuff, which is where I sense you
>register what file types an app can receive.
You can specify file type associations in the WebStart JNLP file:
<jnlp spec="1.0+" codebase="http://localhost/editlivexml"
href="designer.jnlp">
<information>
...
<association extensions="els"
mime-type="x-application/elx-solution" />
...
</information>
...
</jnlp>
Not sure how or if that works with OS X though. It does work for us
quite nicely on Windows.
Regards,
Adrian Sutton.
_______________________________________________
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
This email sent to email@hidden