Hello all,
We have created a java app that creates its own file format that we
can assoicate with the application in Windows. We would like for the
user to be able to double click on of these files while the app is
running and have the app open it. We are at a loss of how to do this
with out opening another session of app, which is what we are trying
to avoid. Any help, tips, webpages to read, anything to try would be
super helpful.
Thanks,
Menlo
Martijn - 12 Apr 2007 18:36 GMT
> We have created a java app that creates its own file format that we
> can assoicate with the application in Windows. We would like for the
[quoted text clipped - 3 lines]
> to avoid. Any help, tips, webpages to read, anything to try would be
> super helpful.
There might be a "better" way, but this sounds very platform specific and
may not be supported by Java directly (maybe some library exists, but I
would think you would have already found it).
Anyway, you could write a wrapper script/application that checks whether
your application is already running, and if so, simply put that instance to
the foreground. Similar approaches could be taken for other platforms.
Good luck,

Signature
Martijn
http://www.sereneconcepts.nl
Philipp - 13 Apr 2007 13:24 GMT
> Hello all,
> We have created a java app that creates its own file format that we
[quoted text clipped - 4 lines]
> to avoid. Any help, tips, webpages to read, anything to try would be
> super helpful.
If you distribute using Java Web Start this is included. You can do file
association and also using SingleInstanceService, you can avoid a second
app being launched but params are forwarded to the already running app.
HTH Phil
Andrew Thompson - 13 Apr 2007 13:35 GMT
(double click - open)
..
>If you distribute using Java Web Start this is included. You can do file
>association and also using SingleInstanceService, you can avoid a second
>app being launched but params are forwarded to the already running app.
& here is an example of using the SingleInstanceService..
<http://www.physci.org/jws/#sis>

Signature
Andrew Thompson
http://www.athompson.info/andrew/