Saturday January 20, 2007
Watch Movies in NetBeans
My long-cherished dream has come true at last... I can watch movies in NetBeans IDE. And, thanks to the powerful windowing system, I can watch multiple movies at once:

Plus, it is very easy to remove all the IDE's modules... and then you're left with a separate non-IDE application that contains only the parts needed for the movie player. Here the application is running on NetBeans 6, so that the windows can be undocked:

To make the above application yourself, you need only have a very minimal knowledge of the NetBeans Platform, which is the framework on which the movie player runs. To see the user interface of the original Swing application, look at the screenshot below (which, though it has "NetBeans" in the titlebar, has nothing to do with NetBeans, other than that I used NetBeans IDE to create it, but I could have created it in any IDE or no IDE at all):

Here you see a simple Swing application that runs movies, using the JMF framework as its basis. Clearly, it is not a fully fledged application. But, the second screenshot above shows a complete, fully-functioning application (though it needs to be cleaned up a little bit, like the icons and so on). If you compare the third screenshot with the second one, you'll immediately see the benefit of the NetBeans Platform. I.e., a windowing system, explorer view, and menus. I did no coding whatsoever for these valuable application features. In fact, porting the application required no additional coding on my part, with the exception of creating the class that opens the movie in the new window, via the NetBeans APIs. All the rest was either given to me for free as part of the NetBeans Platform or provided via templates that come with NetBeans IDE.
The only real work needed for this application is setting up JMF correctly -- you also need some additional stuff, such as Fobs. Then you need to register the additional plugins correctly in the JMF Registry. This part is the most difficult and when things are not working correctly it is almost impossible to know what piece of the puzzle is missing. (This JMF diagnostics tool is very useful.) And each platform has different requirements. All not very nice, but the end result is really cool. High quality resolution, great sound, and the possibility of watching multiple movies simultaneously while having the option of extending the functionality if needed. Hurray for JMF and NetBeans.
Jan 20 2007, 05:03:47 AM PST Permalink
Posted by Roumen on January 20, 2007 at 12:43 PM PST #
Posted by Stefan Flemming on January 20, 2007 at 03:00 PM PST #
Posted by Geertjan on January 21, 2007 at 08:26 AM PST #
Posted by bobbie-jean on January 21, 2007 at 12:19 PM PST #
Posted by Geertjan on January 22, 2007 at 03:23 AM PST #
Posted by Oliver Rettig on January 23, 2007 at 02:06 AM PST #
Posted by Geertjan on January 25, 2007 at 10:10 AM PST #
Posted by 222.147.93.73 on May 05, 2007 at 11:31 PM PDT #


