java program to play a video
You need to use the java fx platform to build one . Look at this link : http://www.youtube.com/watch?v=bWl98dhvf8Q . Its a great explanation to start off. You can build a basic player using this video. If you wish to, you can add plenty of features by referring to the docs regarding java fx.