FX Experience Has Gone Read-Only
I've been maintaining FX Experience for a really long time now, and I love hearing from people who enjoy my weekly links roundup. One thing I've noticed recently is that maintaining two sites (FX Experience and JonathanGiles.net) takes more time than ideal, and splits the audience up. Therefore, FX Experience will become read-only for new blog posts, but weekly posts will continue to be published on JonathanGiles.net. If you follow @FXExperience on Twitter, I suggest you also follow @JonathanGiles. This is not the end - just a consolidation of my online presence to make my life a little easier!
tl;dr: Follow me on Twitter and check for the latest news on JonathanGiles.net.
by Jasper Potts | Jan 27, 2012 | General, Tips n' Tricks
I came across the interesting blog “JavaFx and HTML5 differences” by Chika Okereke. Looking at the example code and comparing to the HTML Canvas version I thought the Java code could be made less verbose and easier to read.
Original Code
Path path_4 = new Path();
ObservableList shape_4 = path_4.getElements();
shape_4.add(new MoveTo(50,50));
shape_4.add(new LineTo(150,50));
shape_4.add(new LineTo(150,150));
shape_4.add(new LineTo(50,150));
shape_4.add(new LineTo(50,50));
path_4.setStrokeWidth(2);
path_4.setStroke(Color.rgb(255,0,0));
So I hacked together a Extended version of the PathBuilder that ships with JavaFX 2.0 adding methods for all of the path elements like moveTo() etc. The end result seems much cleaner code to me, what do you think?
Code with new Builder
Path path4 = PathBuilderExtended.create()
.moveTo(50, 50)
.lineTo(150, 50)
.lineTo(150, 150)
.lineTo(50, 150)
.closePath()
.strokeWidth(2)
.stroke(Color.RED)
.build();
This seemed a lot cleaner and simpler to read. I have filed a feature request RT-19266 in JIRA to add this to the platform. Feel free to comment on the bug if you any feedback or better suggestions. Also I have attached a implementation of this builder to the bug so you can see how it would be implemented or use it with your code today.
by Jonathan Giles | Jan 23, 2012 | Links
A heap of links this week (partly because I’m a day and a half late with this post!). Hopefully something for everyone 🙂
Catch you all in a weeks time.
by Jonathan Giles | Jan 23, 2012 | News
I’ve been waiting for a while to say this, but we now have JavaFX 2.1 developer preview builds available for Windows, Mac and Linux. From here on out we’ll be putting out developer preview builds for all three platforms. Hopefully that pleases everyone who has been asking for Linux support 🙂
by Jonathan Giles | Jan 15, 2012 | Links
A relatively quiet week this week for JavaFX links.
by Jonathan Giles | Jan 8, 2012 | Links
Here’s the links from the past week – enjoy! 🙂
- Richard Bair wrote about his 2012 JavaFX new years resolutions.
- Jasper Potts wrote a fun JavaFX 2.0 audio player, with source code included.
- Dustin Marx continues to blog about various JavaFX-related topics, including “Applying Sepia Effect to Loaded Images in JavaFX 2.0“, “JavaFX 2’s Ensemble and other Sample Applications“, “JavaFX 2’s Tri-State CheckBox“, and “Pair Class Coming to Java via JavaFX?“.
- Tom Schindl released e(fx)clipse 0.0.10, and quickly followed that up by version 0.0.11 to resolve a few release issues.
- Kai Tödter has blogged about JavaFX 2.0, Swing & SWT Renderers for the Eclipse 4.x Application Platform.
- Sai Pradeep Dandem has experimented with the TableView control to allow for setting percentage width of columns.
- Toni Epple has blogged about styling a custom JavaFX control with CSS.
- René Jahn has blogged about hooking a database up to a JavaFX TableView control.
- NetBeans 7.1 shipped this week, and includes major improvements for JavaFX 2.0, FXML and CSS.
- Johan Vos and I shipped another release of our DataFX library, taking the version number up all the way to 0.0.5! This release includes much improved REST data source support, and additional support for ‘independent’ CheckBoxTreeItems.
by Jasper Potts | Jan 7, 2012 | Controls, CSS, Demo, UI Design, Uncategorized
I was inspired by Dean Iverson’s tweet with a audio equalizer in JavaFX:
#JavaFX rocks. Literally. An example from our upcoming Pro JavaFX 2 book: pic.twitter.com/tSI4Vry4
and the equalizer view from that Pro JavaFX 2 example app: pic.twitter.com/T6jxvrf9
. updated pic.twitter.com/FqzgVimG
So wanted to have a go at doing one my self, so little while later I have a design and built a working application. Demo video after the break.
(more…)
by Richard Bair | Jan 3, 2012 | Uncategorized
Ok, hokey title. Jonathan wrote up a really great retrospective on 2011 for JavaFX, and it inspired me to want to write a post detailing the plans and goals I have for JavaFX in the new year (and I’m sure Jonathan and Jasper would concur).
Without further ado, my top 10 list of goals for 2012!
(more…)
by Jonathan Giles | Jan 1, 2012 | Links
It’s another year already! I hope everyone had a great start to 2012. Because I published last weeks links roundup a few days late, there aren’t too many links this week, but the links I do have below are all of a very high quality. Enjoy! 🙂
Catch you in a weeks time, when I’ll be back in New Zealand! 🙂
by Jonathan Giles | Dec 29, 2011 | General
With the end of 2011 nearing, I thought it would be a good time look back on what has happened in the world of JavaFX this year…
(more…)
by Jonathan Giles | Dec 27, 2011 | Links
Sorry for the delay in this post – with Christmas I managed to relatively disconnect from the web for a few days. Now that things are getting back to normal, I have a heap of links to share. Enjoy! 🙂
- The big JavaFX news this week was the release of early access builds of JavaFX 2.1 for Windows and Mac OS.
- Here at the FX Experience blog, Jasper Potts blogged about styling JavaFX Buttons with CSS, where he demonstrated the power of CSS in JavaFX.
- In a separate post, Jasper posted a tool he developed prior to JavaOne 2011 that converts FXG into FXML.
- As mentioned a few weeks ago, one of the new features in JavaFX 2.0.2 is support for SWT interoperability. Richard Bair put up a sample application that integrates JavaFX Charts into an SWT application.
- The OpenJFX website was updated this week to include a ‘Getting Started‘ document, as well as the first two user experience specifications for Spinner and ‘DatePicker’. These two were posted first as they are being discussed in the openjfx-dev mailing list.
- Jim Weaver was interviewed in episode 61 of the Java Spotlight Podcast.
- Toni Epple has blogged about creating a custom DateChooser control. There is a bit of broken generic code at the top of the top of the DateChooserSkin class, but other than that it is a complete example. This is a control that is planned for a future release of JavaFX, but until then there exists both this DateChooser, and the one shipped as part of JFXtras. Hopefully one of these implementations may even be incubated and adopted into a future JavaFX release, now that JavaFX UI Controls are open source.
- Adam Bien has blogged about how to compile JavaFX 2.0 applications using Maven 3.
- In a separate post, Adam gave a very simple example of how binding works in JavaFX (in the form of a unit test).
- Dustin Marx has four JavaFX-related blog posts up this week: “Simple JavaFX 2.0 Text Example“, “(Pure Java) JavaFX 2.0 Menus“, “JavaFX 2.0 Christmas Tree (JavaFX 2.0 Shapes)“, and “JavaFX 2.0 Path Alternatives“.
- Carl Dea, who recently published the ‘JavaFX 2.0 Introduction by Example‘ book, has published a sample on his blog.
- For those attending JFokus, you may be interested in the ConferenceBrowserFX application Jim Weaver has created.
- For those in the St. Louis area, Weiqi Gao is presenting at the St. Louis Java User Group on the topic of JavaFX on January 12th.
- I try to not post videos as links, but every now and then break the rules. This week I have two interesting videos to share. Firstly, Gerrit Grunwald has put up a comparison video of his SteelSeries gauges, that demonstrates the difference (or similarity) between the Swing/Java2D and JavaFX versions. The second video is from Bertrand Goetzmann, where he shows off the latest features in Grezi.
I hope you found something useful 🙂 Catch you in a weeks time!