In my last post, I wrote about how to make custom component compatible with FXML and how to use it in an application.
Before that, I had tested the client API of JAX-RS 2.0 (with JSON and XML serialization).
And now, when I’m putting them together, I can write a small JavaFX 2 application which consumes REST services.
In November, last year, I wrote a little example on how to extend an existing component in JavaFx 2.0.
Today, I would use this component in FXML and make a little demo.
The application for the demo is very simple:
One SearchTextBox component (custom component) with events on OnCrossButtonMouseClicked and OnSearchEvent.
One ComboBox to change the font size of the SearchTextBox component.
On october 21th 2010, I wrote a RESTful client in Java. We
are now in 2012, and the next version of JAX-RS (the 2.0 and which will be
included as part of Java EE 7) will include a client API.
The JAX-RS 2.0 specification is still work in progress, but a few
implementations already exist (in beta or in the first milestones).