I have written an application in Java/Swing, which edits a bespoke filetype.
I have also implemented drag & drop to add further files to edit. I have added mimetypes to my desktop environment so that a double click starts my application & opens the file.
My Problem is, when I double click on a second file, it starts a second instance of my program. How do i setup this to open the second file in the initial instance of my application ?
As this is StackOverflow, not AskUbuntu...What needs to be done on the Java/Swing side to enable this to work?