A single instance application is one that only allows for 1 of the application to run no matter how many times the user tries to launch. Windows and linux native applications have an API to detect the instance of an application but when in Java, it is not quite as easy or reliable. To complicate matters, often times the requirement will be for the original application instance to react in some way to the launch, as in bringing the window to the front, opening a file or displaying a message.
Fortunately it's not all that difficult to code this if you know the trick. In this article I'll give you all the code you need to copy and paste into your application to make it single instance.