Java/OS File Handling
I've just started building graphical applications with Java in the last month and I've been trying all sorts of interesting things. My latest project is a very simple, lightweight text editor(see attached).
What I'd like to do, is to be able to click on a text file in the operating system's shell, and have my little text editor open it. Is there a way to handle things like that in Java?
Basically what OS does is associate the extension with relevant applications. Simply that's what we do in Windows, by changing the Open with on it's properties.
As said above it's a os specific operation, but probably this can be done from java too as per this article
Understanding JDIC File-Type Associations
however this is new for me too.
Yeah, as far as I've deal with those things in few times, it's not an easy task. Specially comes to the UNIX environment.