Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Opening data file in already open app by double clicking?

Thread view: 
kaopelt@gmail.com - 12 Apr 2007 18:11 GMT
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/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.