An 'improved' JavaFX MediaView class

| | Comments (0) | TrackBacks (0)
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...
The result looks like this:
imv-cap1.png
imv-cap2.png

0 TrackBacks

Listed below are links to blogs that reference this entry: An 'improved' JavaFX MediaView class.

TrackBack URL for this entry: http://coffeejolts.com/cgi-bin/mt4/mt-tb.cgi/19

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

Powered by Movable Type 4.2-en