An 'improved' JavaFX MediaView class

| No Comments | No TrackBacks
Since the JavaFX Preview SDK was released, I have been toying around with its video support. Overall, it is really, really good. I'm impressed and I've only hit the tip of the iceberg. Of course, there is room for improvement. For example, the current MediaView class does not have any concept of width nor height, whereas the ImageView class does. I was able to fix that with this amazingly short piece of code.
Yes, that is really it. To use it, just swap out ImprovedMediaView for MediaView, and set your width, height, and fill like this...

No TrackBacks

TrackBack URL: http://www.coffeejolts.com/cgi-bin/mt4/mt-tb.cgi/98

Leave a comment

About this Entry

This page contains a single entry by Coffeejolts published on August 5, 2008 6:05 PM.

JavaFX Brush for Syntax Highlighter was the previous entry in this blog.

FXContainer v0.1 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.31-en