Thread: video in java
View Single Post
Old May 12th, 2008, 12:04 AM   #2
Fall Back Son
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 203
Rep Power: 2 Fall Back Son is on a distinguished road
Re: video in java

Its actually not very complicated. Look into the Desktop class. Google: Java Sun Desktop.

For example

Desktop.getDesktop().open( new File("c:/somewhere/aFile.txt") );
// opens the file that was passed as a String.

I'm positive that it works because I have used it. The idea is that the Desktop class allows you to use whatever default applications exist (WMP, Word, etc) in order to open certain file types. I'm pretty sure it works for video as well as text files etc.
Fall Back Son is offline   Reply With Quote