lundi 16 septembre 2013

Lambda and JavaFX 8.0

Updating my Mac with:
Now, let's try to play with Lambda …  and JavaFX 8.0

My first try is a classical replace of the ActionEvent of a button by a Lambda and a less classical call of an existing method by using method references.
And my second try is to rewrite Duke Anim with Lambda.

jeudi 18 avril 2013

Navigation in AngularJS

I continue my exploration of AngularJS, and this time on the navigation part.
To do that, I wrote a little application, to show how to:
  • use $routeProvider to handle the navigation by creating new routes with the necessary parameters to construct the view which will be render by ng-view.
  • navigate from a html link
  • navigate from a html button

vendredi 15 février 2013

Consume a RESTful service with AngularJS


In the beginning of this year, I watched the AngularJS's talk at Devoxx onParleys. After that, I went to ParisJUG to see the technical talk about AngularJS.
And I thought: it seems to be a great JavaScript framework, I must try it!
To try it, I wrote a small application which consume a REST service.
The application is similar to the application I wrote for the post: put it alltogether, and consumes the same REST service.

jeudi 27 septembre 2012

Put it all together (JavaFX 2.x Custom component, FXML, JAX-RS 2.0 client API)

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.

lundi 18 juin 2012

JavaFX 2.x custom component compatible with FXML


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.

mercredi 23 mai 2012

RESTful client in Java with JAX-RS 2.0 Client API (JSON update)


When I wrote RESTful client in Java with JAX-RS 2.0 Client API, I thought that JSON serialization/deserialization was not working with Jersey 2.0-m3.
But, in fact, it works as designed and Martin Matula gives us the solution in his second comment and in JIRA).
To use the JSON serialization/deserialization (with Jersey 2.0m3), you have to:
  •  enable the JsonFeature on the client with the line:
    client.configuration().enable(new JsonFeature());
  •  and add the jars:
    jersey-media-json-2.0, jackson-jaxrs, jackson-core-asl, jackson-mapper-asl and jackson-xc

jeudi 10 mai 2012

RESTful client in Java with JAX-RS 2.0 Client API


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).

To begin to explore the JAX-RS Client API, I decided to use the Jerseyimplementation (which is the JAX-RS's reference implementation) and the same RESTful service that I used in RESTful client in JAVA.

jeudi 17 novembre 2011

Extend an existing UI component in JavaFX 2.0


Last year, I coded a custom component on JavaFX 1.x, then naturally I wished to rewrite it on JavaFX 2.0.
To do this, i tried different solutions,  like creating to a totally new component with this method
But, it isn't a great solution when you want to customize or to enhance an existing component, like I want to do.
To rewrite my custom component, I chose to extend an existing control (TextField in my case) and its skin, because you cannot add content directly in the control but you can do that in its skin.


jeudi 4 août 2011

A very simple example using FXML (JavaFX 2.0 b37)

update August 05, 2011: cleaner code and runs in b38.
This example is a very simple JavaFX application using FXML. It could certainly be improved, but it's just enough to begin to play.

vendredi 22 juillet 2011

mercredi 22 juin 2011

Droid Anim – Android 3.0

When I wanted to try JavaFX 1.x and more particularly the animations, I wrote Duke Anim, and Duke Anim in JavaFX 1.3.
So when I wanted to try the new animation API in Android 3.0, I wrote Droid Anim.

mercredi 9 février 2011

JavaFX 2.0 Early Access and Beta Program

JavaFX 2.0 Early Access is available for the JavaFX Partners, the JUG Leaders, and the Java Champions.
I'm not a JavaFX Partner, nor a JUG Leader or a Java Champion (even with my last name ;) ), but in the form to sign up to participate in the Early Access and Beta program there is an item "Other".

So, because i'm a JavaFX enthusiast, I signed up as "Other" …
And may be, with a little luck, I could have an access to the Early Access and Beta Program !


dimanche 12 décembre 2010

Some tips for newbies developers on Android 2.2 (like me)

The tips are :
  • Know the devices which are connected
  • Deploy your application on real devices
  • Deploy your application on SD Card
  • Know the location (internal or SD Card) of your application and move it or stop it

jeudi 11 novembre 2010

RESTful client in JavaScript

In the line of my posts regarding consumption of JSON RESTful services in different technologies (JavaFX, Java), I wrote a small client in JavaScript.
As in my previous posts, I use the RESTful service described in RESTful service with JAX-RS (and JPA 2 for the access to the data.

dimanche 10 octobre 2010

RESTful client in Java

Because JavaFX 2.0 will be a Java API, we shall have to use Java (or Groovy, Scala, JRuby,etc ... but this isn't the purpose  of this post) instead of JavaFX Script for use it.
And because, the news UIs creates with JavaFX 2.0 will have to consume RESTtful JSON services, I wrote a small RESTful client in Java.
To do that, I use the JAXB's implementation for JSON from
Jersey and for the RESTful service to be consume, the RESTful service wrote in an old post: RESTful service with JAX-RS (and JPA 2 for the access to the data)

mercredi 1 septembre 2010

Arcade Fire, Html 5, Google Chrome Experiment

It’s not because I’m a big fan of Arcade Fire (Great Show at Rock en Seine, even under the rain) that I speak you of their last "clip", but I think it's a great demo of what we can make with html 5.
The "clip" of: We used to wait
http://www.thewildernessdowntown.com/