Tuesday Jun 30, 2009

If you're a Mac user and access javafx.com pages with embedded applets,, such as the JavaFX samples or documents on the Learn page, you may have noticed a new warning popping up, even for applets you've run before:

This new dialog box is appearing because Apple has changed to a site/URL-based security model in one of its recent Java updates. You can keep this message from popping up repeatedly by selecting the checkbox that says Allow all applets from "javafx.com" access.

Monday Jun 29, 2009

Here's a quick-and-easy video player written in the JavaFX Script programming language. First, place your video clip into the same directory as this source code. Next, edit the code in red (clip name, scene with, and scene height) to match your particular video. Finally, compile and run the program. Clicking on the screen will pause/unpause playback.

Step 1: Add Import Statements

import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.paint.Color;
import javafx.scene.media.*;

Step 2: Define Media-Related Variables

def vid = "{__DIR__}video-clip.flv"; // CHANGE AS NEEDED

var isPlaying = false;

def myMediaPlayer = MediaPlayer {
        media: Media {source: vid}
}

def myMediaView = MediaView {

    onMousePressed: function(event){

        // take action
        if(isPlaying){
            myMediaPlayer.pause();
        }else{
            myMediaPlayer.play();
        }

        // toggle play state
            isPlaying = not isPlaying;
    }

    mediaPlayer: myMediaPlayer
}

Step 3: Render Player

function run(){
    Stage {
        title: "JavaFX Video Player"
        scene: Scene {
            width: 800 // CHANGE AS NEEDED
            height: 600 // CHANGE AS NEEDED

            fill: Color.BLACK
            content: [myMediaView]
        }
    }   
}

Friday Jun 19, 2009

I've written 4 blog articles on the JavaFX sequence implementation that should be of interest to those who want to know how it works and what it costs.  This covers the 1.2 Marina implementation.

This is probably the best order to read them:
http://per.bothner.com/blog/2009/JavaFX-sequence-basics/
http://per.bothner.com/blog/2009/JavaFX-unboxed-sequences/
http://per.bothner.com/blog/2009/JavaFX-sequence-updating/
http://per.bothner.com/blog/2009/JavaFX-sequence-triggers/

Wednesday Jun 03, 2009

If you are interesting in trying out JavaFX running on a real phone, we are offering HTC Diamond handsets preloaded with JavaFX and a couple of sample applications for sale at the show in the JavaOne Store.  Click here for Peter Pilgram's (one of the Java Champions) AudioBlog on this subject!

Wednesday May 27, 2009

One of the important features of JavaFX is its ability to load and manipulate rich graphics coming from professional designer tools such as Adobe Illustrator or Adobe Photoshop. This is possible by using JavaFX Production Suite for exporting graphics from the designer tools to FXZ format and then by loading and manipulating the graphics from by classes in the javafx.fxd package. For example stuff from the screenshot below - graphics like we used for the demo of the JavaFX Production Suite for the JavaFX launch event back in December 2008. 

 Photoshop exporting JavaFX

The team delivering the JavaFX Production Suite will be at JavaOne and will be doing a session session "Getting the Most from the Designers with JavaFX Production Suite" and a BOF "Quo Vadis JavaFX Production Suite". The session is aimed more at beginners and intermediate JavaFX developer and will focus at the introduction, basic usage and feature overview of the JavaFX Production Suite, whereas the BOF will be more about advanced and upcoming features. We would like to also use the BOF as the platform to hear feedback from you! Both sessions will have many cool demos with stuff you never shown in public before, including new features of 1.2 and stuff  we are preparing in our kitchen for the upcoming releases (and I can tell you it is pretty wild stuff, think about stuff like animations, audio, interactivity ...)

You can come to see as at the session: 

  • ID#: TS-5494
  • Title: Getting the Most from the Designers with the JavaFX™ Production Suite
  • Date: 02-JUN-09
  • Time: 04:40 PM-05:40 PM
  • Venue: Moscone
  • Room: North 124

and at the BOF:

  • ID#: BOF-5493
  • Title: Quo Vadis JavaFX™ Production Suite
  • Date: 02-JUN-09
  • Time: 07:30 PM-08:20 PM
  • Venue: Moscone
  • Room: North 124  

 

See you all there!

JavaFX Production Suite Team 

Thursday May 07, 2009

The JFXStudio has launched a new micro challenge: Small World Sound The twist on this one is that the entries must incorporate a set of graphics and sound provided for the contest. I's an fun collection of artwork so this should make the entries quite interesting. Why don't you show the world what you can cook up?!

Sunday May 03, 2009

Hello, 

 In this past week the Application Showcase on the  JavaFX.com community page has featured 

This and other applications received some good press. In addition Raghu writes about creating a tool tip for a node and another twist on webservices and maps based apps, can be seen on Vaibhav's blog post

 

Friday May 01, 2009



We now have JavaFX contents in Brazilian Portuguese .  The language family now consists English, Japanese, Korean, Simplified Chinese and Brazilian Portuguese.  Simply click on the [Change] link at the bottom of JavaFX.com  and you can select a language of your choice. 

Tuesday Apr 14, 2009

Last week, two of our JavaFX technical writers, Irina Fedortsova and Alla Redko, attended the Sun Tech Days in St. Petersburg, Russia. Here they report on the JavaFX activities at the event.

Irina:

This year, I attended the Sun Tech Days for the third time. My overall positive impression was brightened with two presentations on JavaFX technology. Yes, it seems like it's been just recently that Sun revealed its plans regarding JavaFX and look, here it is! Probably because I have been working on documenting the JavaFX technology, I listened to the speakers with a sort of personal involvement. I paid attention to every detail. I noticed how quickly the seating capacity of the conference hall was exhausted and how deep and tricky the questions were after the presentation. I heard positive comments whispered by the listeners while the demos, which were really cool, were being demonstrated. I think it was the cool demos that inspired further discussions among the participants who chatted about applications they could develop with the JavaFX Script language.

On the last day of the conference, which was the University Day, I assisted in conducting the JavaFX seminar for students. Once again, I was impressed with the quality of questions asked by the students during the Q&A session. Those who attended the seminar quickly grasped the ideas and advantages that JavaFX brings to their coding experience.

Alla:

This year is my third time attending and working for the Sun Tech Days conference. I suppose we've been generously compensated for the rush with last-minute reviews of every content piece developed for the conference either in Russian or in English. I really enjoyed the welcome atmosphere of the booth zone, where the JavaFX booth was undoubtedly the hottest one.  It was also very rewarding to see how many developers are interested in the emerging technology. For instance, the first presentation about JavaFX attracted so many visitors that some of them even had to stand. What I'm particularly proud of, is that the JavaFX Learn page and other doc resources were a "must have" reference in almost all presentations about JavaFX.

The JavaFX seminar we worked on together with training representatives proved that JavaFX technology draws huge interest among students and professors. Amusingly, most of the attendants had not registered for the seminar. They came after talking to Sun engineers at the JavaFX booth, listening to presentations about JavaFX, or attending the JavaFX Master Class. This is how adoption works!

Monday Apr 13, 2009

We here in the JavaFX team think that the JavaFX Production Suite is a great tool for designers and developers that enables them to work directly together to create animated, vibrant content & rich user interfaces.  It helps each individual focus on what they do best and provides a smoother, iterative, workflow.  

But hey, don't take our word for it, check out this blogger's opinion:

"Using the production suite leads to simpler programs that focus only on the logic and effects and leaves the heavy lifting of the design to the graphic artists who know how to do that best. In fact, incorporating the production suite into your toolbox provides you with a JavaFX UI design tool that rivals any other" 

Check out the full blog for more!  If you'd like to try out the JavaFX Production Suite, you can download it here

Thursday Apr 09, 2009

In our application showcase this week we have the winners of the micro-challenge - a small challenge in honor of the larger JavaFX coding contest. The "Orange" theme event had three winners. We continue to feature memefx - a set of rich-freely evolving JavaFX components, and Gravity Test from TareitasFX  a test using JavaFX (with Phys2D wich is a physics engine).

 Some interesting articles that appeared this week: 

 

 Check out these and other applications and articles of interest on our community page at http://javafx.com/about 

Wednesday Apr 08, 2009

Some of you might have wondered who works on the JavaFX team, who leads, designs, builds, tests, markets and does scores of other things that make a platform happen. This is first in a multi part series to expose the brains and brawns behind JavaFX. 

As a start, meet four of the JavaFX engineers.

Joshua Marinacci is the JavaFX community leader and has recently started jfxstudio a  community site specifically for sharing JavaFX creations. He also worked on the samples.

Martin Brehovsky leads the production suite tools.

Richard Bair is responsible for a lot of the api designs and UI controls.

Jasper Potts works on the UI controls for JavaFX and samples.

Danny Coward, chief architect of  Client software religiously rounds up everything java  at the Planetarium.


Wednesday Apr 01, 2009

Following are some Japanese JavaFX blogs from our localization and internationalization engineers

Kenji TachibanaMasaki KatakaiNaoto Sato | Yuka Kamiya

 Also introducing a new JavaFX Japanese community portal, initiated by the community. This is where JavaFX users can freely communicate and exchange ideas and information in Japanese.

Tuesday Mar 10, 2009

The JavaFX team is heading down to Austin, TX next week for South By Southwest Interactive - March 13-17th. Here's a snapshot of the events and activities we'll be participating in:

  • Visit the JavaFX App Lounge on the tradeshow floor (Booth #'s 305/307/404/406) where you can see JavaFX in action on both PCs & mobile devices. You can also come and mingle with the brains behind JavaFX during the SXSW Booth/Pub Crawl, Sunday, March 15, 2009 4pm-6pm
  • We Like Big Apps: Developing for All the Screens of Your Life, Saturday March 14, 2009, 5pm-6pm, Room 10 Join this vibrant panel of creative Java executives and industry luminaries as they discuss the platforms, tools, tips and tricks that offer distinct advantages for web designers and developers who are seeking to stand out from the crowd.
    •  Eric Klein, VP of Java marketing at Sun moderates this session featuring:
      • Peyton Lindley, executive director of UX design and technology, EffectiveUI;
      • Bill Maggs, head of developer and partner engagement, Sony Ericsson; 
      • Nizar Alibhoy, CEO, Telepop

And because it wouldn't be SXSW without parties - you don't want to miss the first ever Fusion Interactive and Film party - sponsored by JavaFX and Whrrl - Monday, March 16, 2009 8pm-10pm @ Red Eye Fly.

If you're going to SXSW you should definitely stop by one of these events & meet the JavaFX team. Hope to see you there! 

The javafx.scene

Friday Mar 06, 2009

JavaFX Slide Show - Slides on JavaFX from Sun Tech Days, Hyderabad

For standalone mode

Source