Single Instance Java ApplicationA single-instance application starts and checks whether it is the first instance or a subsequent instance of the application:
For example consider this scenario: Your application is running. You have some files that are associated with it. When you open one of those files the application will not be launched again, but the running instance will be used to open the file. In order for your application to be capable of running in Single Instance Mode, in the main class of your java application add a method with one of the following signatures: static void secondaryMain( String args[] ) static int secondaryMain( String args[] ) This method will called if you instantiate the application again.
| |
|
| Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer | ||
| © 2002 - 2008 Caphyon Ltd. Trademarks belong to their respective owners. All rights reserved. | ||