A number of people have asked me recently can I create this look or that look using CSS in JavaFX. Or they have said that you could never do that! So I thought I would do a little experiment and try recreating a bunch of common button styles purely using CSS. So without further ado, here is the result:
Here we go again…..enjoy! 🙂
- JavaFX 2.0.2 was released this week, bringing with it a heap of bug fixes, as well as a number of new features including SWT interoperability, and improved mouse scroll APIs. Additionally, the license was updated to allow for redistribution.
- A new JavaFX 2.0 Developer Preview release has been made available for Mac OS X.
- Coinciding with the release of JavaFX 2.0.2, the JavaFX Documentation team put out a number of new articles, covering topics such as JavaFX menus, styling charts with CSS, handling events, and others.
- The JavaFX roadmap has been updated to give more detail about future releases.
- Tom Schindl has announced the release of e(fx)clipse 0.0.9, as usual it comes with bug fixes and a few new features, including improved wizards, improvements to his fxgraph DSL, and early FXML support.
- Sven Reimers and Geertjan Wielenga have announced the eFX project, which is a JavaFX RCP based on the NetBeans RCP.
- Pedro Duque Vieira has blogged about using ContextMenu in both JavaFX, and when embedded within a JFXPanel inside Swing.
- Dustin Marx has blogged “Hello JavaFX 2.0: Introduction by Command Line“.
The JavaFX 2.0.2 release is now available for download. Along with a heap of bug fixes, notable improvements include:
- Interoperability with the Standard Widget Toolkit (SWT).
- New scroll event that handles scrolling on two axes and replaces the
- Change of license, which enables third party developers to redistribute the JavaFX Runtime with their applications in accordance with the Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX.
- Updated doclet for the Javadoc tool that is used to generate JavaFX API documentation in HTML format.
- Updated NetBeans projects for the JavaFX samples for use with the NetBeans 7.1 release.
The JavaFX documentation team has also put out more documentation to explain a number of areas, including:
- Styling Charts with CSS describes how to alter the visual appearance of charts in your application. Using the various CSS classes and properties you can set an alternative color scheme, add images and graphical effects, modify the chart legend and plot, and even invent new chart symbols.
- The Menu chapter of the JavaFX UI Controls tutorial describes how to build a menu bar in your application, add menu items, assign specific actions to each item, and set a context menu for a node.
- Handling JavaFX Events describes how to create and use event handlers and event filters to process user interactions with your application.
- Using a Doclet with JavaFX describes how to use the Javadoc doclet that was created for use with JavaFX source code. Using the doclet with the Javadoc tool produces customized HTML documentation.
- Deploying JavaFX Applications describes a new JavaFX Ant helper parameter, <fx:argument>. Also new is a mechanism for passing images to the <fx:deploy> task. Use <fx:icon> to pass icons for various purposes or <fx:splash> to pass a splash screen image for Web Start applications.
Welcome to yet another JavaFX links of the week. There is, as seems to be the case these days, a heap of links. Hopefully you all find something of interest. Enjoy! 🙂
- More JavaOne presentations are available online at Parleys.com. One of the presentations I gave is now available online also (Custom UI Controls and Charts in JavaFX 2.0).
- Richard Bair posted to the openjfx-dev mailing list instructions on how to build the open source JavaFX UI controls code. It is likely that we’ll publish a slightly more proper version of these instructions that I will link to next week.
- The Silicon Valley JavaFX Users Group has another meetup this week. This time it is Per Bothner presenting the JavaFX WebView component. As always, if you can’t be there in person they will be live-streaming the event, which often works well and is well-worth attending if you have the time.
- Dan Zwolenski has put up a blog titled “JavaFX and MVP – a smörgåsbord of design patterns“.
- For those who use gradle, there is now a JavaFX plugin available for it.
- Carl Dea has published his booked titled ‘JavaFX 2.0: Introduction by Example‘. I haven’t read the book, so I can’t offer any feedback on it yet.
- Eric Bruno has blogged about creating a custom JavaFX container.
- Jim Kay has blogged about ‘experiments in 3D in JavaFX 2.0‘.
- John Smith has created a jQuery-based DatePicker ‘control’ that you can use in your own JavaFX applications.
- Sam Howard has blogged about writing a PDF viewer in JavaFX 2.0. In a separate post, he announces the release of a NetBeans plugin that allows for viewing PDFs inside NetBeans, as well as the ability to convert PDF files into JavaFX scenegraphs. In a third link, Sam provides the download details for a JavaFX library that allows for viewing PDF files inside JavaFX.
- Geertjan Wielenga has put up a few JavaFX-related posts this week around integrating JavaFX with NetBeans. Firstly he talks about a docking framework and module system for JavaFX 2.0. In his second post he talks about enabling deeper integration of JavaFX 2.0 into NetBeans. Thirdly, Geertjan notes that JavaFX 2.0 (and most notably the ‘Henley Sales’ end-to-end sample) wowed JavaOne Latin America. Finally, Geertjan thanks JavaFX for providing an embedded browser for NetBeans.
Catch you all next week…
Ok, this post is slightly early, but I’m not going to be around much for the next three days, so I thought I’d sneak it out a few hours early rather than make you all wait. Also, because I have very, very little time to write this post, it’s going to be a little more succinct than usual. All will return to usual next week, but for now, please enjoy! 🙂
- The big news of the week is that the first code drop of JavaFX 2.0 source code was finally made public as OpenJFX. The source code is for the UI controls (which is something I work on). If you are interested in learning more about UI controls, or helping to make them better, you should definitely sign up to the mailing lists.
- Adam Bien posted a quick blog post on how to go about getting and compiling the JavaFX 2 UI controls source code.
- Tom Eugelink has announced that the MigLayoutFX2 / MigPane project has moved to become a module of MigLayout itself.
- Dierk Koenig has mentioned that Oracle and Canoo are offering to write a rich JavaFX client application for your needs, free of charge.
- Niklas Hoffman posted recently to the JavaFX Forums introducing a project he has been working on: a ‘JavaFX property compiler‘. You can find out more at the Google Code project site.
- In a separate Google Code project, Niklas has also showed off a TreeChart component for JavaFX.
- Jim Weaver posted a sample ‘TweetBrowser‘ application.
- In another post, Jim Weaver made available the JavaFX application he is using to present at JavaOne Brazil, titled “The Return of Rich-Client Java”.
- Mario Torre posted a JavaFX pathfinding application.
- Roman Kennke has blogged about how the SwingView works. SwingView is a component Roman and colleagues are working on to enable embedding Swing inside a JavaFX application.
- Pedro Duque Vieira has blogged some tips about migrating from JavaFX 1.3 to 2.0.
- The Register has written a three-page post on JavaFX 2.0. Personally, I’m pleased they found the TableView control to be so performant 🙂
- Related to the article at The Register, Tom Schindl has blogged to clarify the relationship between fxgraph (his own DSL) and FXML.
- Narayan Maharjan has blogged an introduction to FXML.
- I did a post to show how to disable alternate row highlighting in TableView and ListView controls when the rows contain no content.
That’s that for another week. I’ll catch you back here in a weeks time…..