Originally posted by Maulin Vasavada:
hi Vinay,
a crude solution...
in ur applications startup class (main class) create a lock file , say file with ext .lck and check for it before creating it. if it exists then display dialog - " you can only launch one instance of the application" and then do System.exit(0); you know..
so algo would be like,
if ( lckFileExists() ) {
// display error
// exit
} else {
// create lock file
// launch application by going further..
}
hope this helps..
i am not sure if JWS has anything in there for us to have the functionality u want..
regards
maulin.
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|