Results 1 to 4 of 4
Thread: Java/OS File Handling
- 05-04-2010, 06:11 AM #1
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?
- 05-04-2010, 09:57 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 05-04-2010, 10:05 AM #3
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
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.Swastik
- 05-04-2010, 10:08 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
Similar Threads
-
Regarding File Handling
By ravjot28 in forum New To JavaReplies: 1Last Post: 01-20-2010, 09:15 PM -
file handling problem
By gcampton in forum EclipseReplies: 19Last Post: 01-05-2010, 01:18 PM -
handling WAV file
By zellazode in forum New To JavaReplies: 1Last Post: 09-08-2009, 03:46 PM -
Problem in File Handling in Java
By getbiplab in forum New To JavaReplies: 6Last Post: 03-31-2008, 12:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks