★ wanayoo — archive 1999 http://blogs.oracle.com/java/Nouvelle recherche | Portail wanayoo

June 23, 2010

Screencast: Using JavaFX Composer in NetBeans IDE 6.9

Have you checked out the new JavaFX Composer yet?  If not, you might want to check out this screencast from the NetBeans team which will show you how to quickly and efficiently build JavaFX applications using this brand-new tool

June 21, 2010

Netbeans 6.9 adds official support for new visual editing capabilities and JavaFX 1.3

The Netbeans team shipped release 6.9 last week, delivering a wide range of exciting new capabilities that include improvements to the core platform, better support for working with web technologies, C/C++, Java EE, OSGi and more.  But one of the most exciting new features is improved support for JavaFX.  In particular, the new release delivers the following JavaFX-related improvements:

  • JavaFX Composer for form-like UI components with states and access to various data sources
  • Added and improved editor hints and refactoring
  • Enhanced Palettes for JavaFX Shapes, Colors, Effects, and Charts
  • Improved code formatting

In particular, the JavaFX Composer delivers a highly valuable tool that enables visual editing of form-based user interfaces.  Those of you who are familiar with Matisse will recognize that the JavaFX Composer has been designed along the same lines and early reaction to the JavaFX Composer has been overwhelmingly positive!  For instance, check out this great article from Eric Bruno on using the JavaFX Composer for building a client-side interface to view/edit information from a JDBC data source.

In addition, the release includes the following Java improvements:

  • Java Debugger breakpoint grouping, debugger attach parameter history
  • Support for annotation processors in the editor, configurable in the Project Properties
  • New Applet and Web Start (JNLP) support
  • Improved navigation in Stack Trace Analyzer and URLs, Go To Overridden/Implemented Method action

Congratulations to the NetBeans team on what is surely one of the most exciting NetBeans releases since the JavaFX launch in December '08!  Best way to show your appreciation?  Go download a copy and let them know what you think!

June 18, 2010

Want to use custom fonts with JavaFX?

I had meant to post this awhile back, but somehow neglected to do so. But, better late than never, right? 

If you haven't already run across this excellent blog post by JavaFX architect Richard Bair entitled, "How to Embed Fonts" then I recommend you check it out.  With this very informative posting you'll see how easy it is to use custom fonts within your JavaFX applications.  Now, get out there and build something great!

June 17, 2010

Interested in developing JavaFX content for TV?

If you answered YES to this question, you might be interested in checking out this excellent article written by the JavaFX team entitled, "Tips for Developing to the JavaFX TV Platform."  And with the new JavaFX TV emulator included in JavaFX 1.3, you'll be able to build and prototype TV applications directly on your Windows-based desktop.

May 4, 2010

Controls, Controls, and More Controls

In addition to performance, two of the other areas where we delivered significant improvements with JavaFX 1.3 included UI controls and CSS support.  In fact, some of the great improvements we saw in performance derived from the significantly improved CSS support within UI controls that was included in this release.

 To help you better leverage the new UI controls in JavaFX 1.3 and to take advantage of CSS skinning to customize and stylize your content, the JavaFX team has put together an excellent guide entitled, "Using JavaFX UI Controls" that promises to answer all of your burning questions including how to add effects and animation to your controls, understanding layout, using CSS stylesheets, and also gives you a comprehensive guide to using controls with JavaFX including new controls such as Tooltips & password box as well as existing controls such as text-box, radio buttons and more.  Check it out and let us know what you think!

April 22, 2010

JavaFX 1.3 Released, Improves User Experiences

We're very excited to announce the immediate availability of the JavaFX 1.3 platform.  This release represents an important upgrade to the product and delivers a range of performance and functional improvements, including:

  • New and enhanced support for UI controls, CSS skinning, and programmatic layout
  • Performance improvements in the JavaFX Runtime
  • New NetBeans IDE 6.9 Beta with improved editing and an updated JavaFX Composer plug-in
  • New features and enhanced performance in JavaFX Production Suite
  • A native JavaFX font family called Amble
  • Support for the development of TV applications, including a new TV emulator
  • Availability of the mobile emulator on the Mac platform

Check out What's new in JavaFX 1.3 for more details and additional enhancements

It might be hard to believe that JavaFX has only been in the market for less than one and a half years, it certainly is for us!  In that time, we've built out the foundation for mobile with a deployment ready runtime, delivered a library of UI controls to make it substantially easier to build out consistent user interfaces, and were able to entice developers to download over 400,000 copies of our tools by our 1.2 release.  We've released a beta of the JavaFX Composer to provide visual-editing for form-based UIs with an exceptionally positive response and seen the community rally around the platform with projects like JFXtras, numerous blogs, and over a dozen books.  We've also been very excited to see companies like the Vancouver Organizing Committee for the 2010 Olympic and Paralympic Winter Games adopting the technology for commercial products and services, and we've got another well-known customer that we're excited to start talking to you about shortly!

But lets get back to the JavaFX 1.3 release.  As we began working with some of these high-profile customers, we found they were really pushing the limits of JavaFX.  Since our 1.2 release we've spent a lot of time carefully evaluating our performance goals to meet the needs of these customers and have heavily optimized in the following areas:

  • Bind performance: 2-3x faster
  • Applet start-up time: 20% faster (with Java SE 6u18+)
  • Text Rendering: 5-10x faster (frames per second/FPS)
  • Highly complex animations: up to 10x faster (FPS)
  • Memory usage: 20-33% reduction (real-world apps, w/ Java SE 6u18+)
  • UI Controls: 50% faster, 33%-50% less memory (typical)

Lets take a quick look at a few of these.  Binding has often been described as one of the more powerful features in JavaFX, but many developers found they had to use it sparingly due to performance considerations.  In JavaFX 1.3 we've implemented substantial improvements in the way JavaFX handles binding and have seen tremendous payoffs, in particular with applications that make heavy usage of this feature. 

Start-up time is another area where we've made substantial improvements.  First, it's important to understand that we measure start-up time in two ways.  We measure both cold-start (the first time a user loads an applet, includes download and initialization) and warm-start (subsequent launches of the applet).  Cold-start is critical, because it's the user's first impression and it's also where we've achieved the most improvements with 1.3.  To improve start-up time, we implemented a number of optimizations throughout the stack, including the JRE and the JavaFX runtime.  Basic applications running on systems with a recent version of the JRE (Java SE 6u18+) launch 20% faster and complex applications start nearly twice as fast!  Obviously your mileage will vary depending on the specifics of your application.

Animation performance has been another area of focus in JavaFX 1.3.  In one of our more extreme benchmarks, we applied animations to 900 objects simultaneously.  In JavaFX 1.2 this would have resulted in a paltry 6 FPS.  With JavaFX 1.3 we are now seeing an impressive 67 FPS - that's over 10x faster! Unless you are using a ton of objects in your application you probably won't see this kind of performance gain but we've effectively removed animations as a performance bottleneck so developers can use them much more freely in their applications. A similar benchmark with 500 animated objects managed to deliver a 5x improvement.

A key area of focus in JavaFX 1.2 was to deliver UI controls to make it easier for developers to build great looking user interfaces.  This effort was very well received by the community and has actually become one of the most requested areas for continued improvement! To this end, UI Controls have continued to be a major area of focus for us with JavaFX 1.3.  With 1.3, we have added and/or substantially upgraded 9 controls and have released previews for an 8 additional controls for developers to begin experimenting with in their applications.  In addition, we have rewritten all of the existing UI controls to take full advantage of the new CSS support in JavaFX, making them simpler, more powerful and highly customizable.  Our UI controls improvements have also yielded substantial performance gains, in particular with applications that make heavy usage of UI controls such as enterprise-class applications.  While applications that use complex UI controls (such as ListView & TreeView) will be 150% faster, and consume up to 50% less memory, we achieved substantially better performance with more complex applications.  For example, a 1.3 application with 200 controls uses 50-80% less memory, starts nearly twice as quickly, and runs 50% faster (comparisons are with 1.2).  For developers who might have used UI controls sparingly in the past and/or avoided using JavaFX for applications that required a substantial number of UI controls, JavaFX 1.3 really opens the door to a range of new use-cases.

There's a lot more we could say about this release (and we will), but for now head over to the download page, get a copy of the new SDK, and try it today!

April 8, 2010

From the Community: JFXtras 0.6 Final Released

One of the greatest things for the JavaFX team here at Oracle is to watch what our customers and the JavaFX community are doing with this product we've created.  The Java ecosystem has been a great example of this... it got its start at Sun but has grown into a massive ecosystem with 9 million developers.  That's got to be one of the biggest development communities on the planet and many of these people make their livelihood with Java.  Its really quite amazing when you think about it.  With JavaFX we're enabling this massive community to more easily build rich, immersive experiences across just about any device - while leveraging the knowledge and experience they already have with Java. Many companies lack the necessary in-house expertise to build and/or support client-side applications written using products from our competitors, which adds risk and/or extra cost to their projects.  With JavaFX, companies maintain more control over their projects because Java knowledgeable in-house developers can now build and/or support modern, advanced, and compelling client applications.

Now to the point of this particular entry.  One of the biggest advocates for JavaFX out in the community is Stephen Chin whose upcoming JavaFX Silicon Valley Meetup we wrote about earlier this week.  Well, Steve just announced the release of JFXtras 0.6 which he describes as " the largest 3rd party library of JavaFX add-ons." He also mentions that this release "represents the work of several dozen contributors over the past 6 months."  The project includes features like wipes, shapes, advanced layouts, borders and much much more.  Check out Steve's blog entry for more details, download a copy and let him know what you think!

April 1, 2010

11 reasons to use JavaFX

Obviously we think JavaFX is a great tool for building your desktop, web and cross-screen clients, but don't take our word for it... check out 11 reasons why Adam Bien thinks you should check out the platform in his recent blog entitled Is JavaFX ready for the Enterprise?

March 31, 2010

Looking for a hands-on introduction to JavaFX?

If you're in Silicon Valley, come check out this month's JavaFX Meetup at Oracle's headquarters in Redwood Shores on April 14th at 7PM PDT.  Stuart Marks will be presenting a session titled: Hands on JavaFX - Scripting the Scene Graph.  If you are interested in attending, you can RSVP here.  Even if you aren't in Silicon Valley or if you don't feel like fighting the traffic you can also view this month's meetup or archives of previous meetups on Stephen Chin's blog

March 16, 2010

Going to CTIA? Check us out at Oracle's Developer Day

If you're planning to be at CTIA this year, come check out Oracle's developer day.  Our exciting agenda promises to be heavy on demos and technology and you'll even get a chance to interact with the presenters 1:1 after their sessions.  On the agenda we have John Burkey, lead architect for JavaFX, who will be showing off latest and greatest developments in JavaFX and Hinkmond Wong will be presenting a session on Java ME as well.  In addition, there will be a number of other great topics on the agenda so register today!