You can now read me on Medium too
https://medium.com/@patrick.champion
And my first story on Medium is : Porting ARKIt by Example (part 2 & part 3) from Mark Dawson to Swift
vendredi 1 septembre 2017
lundi 16 septembre 2013
Lambda and JavaFX 8.0
Updating my Mac with:
- Netbeans 7.4 Beta
- last JDK 8 version(Developer preview Build b 106)
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.
Libellés :
ActionEvent,
Animation,
BiFunction,
button,
JavaFX 2.0,
JavaFX 8,
Lambda,
method references
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:
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
Libellés :
$location,
$routeProvider,
AngularJS,
button,
link,
navigation
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.
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.
Libellés :
AngularJS,
CORS,
Cross Origine Resource Sharing,
JAXB,
Jersey,
REST,
single element array
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.
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.
Libellés :
fxml,
JavaFX 2.0,
JavaFX 2.x custom component,
JAX-RS 2.0 Client API,
Jersey 2.0
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:
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.
Libellés :
Custom component,
event,
eventhandler,
fxml,
JavaFX 2.0,
Search TextBox,
UI 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).
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
Libellés :
client,
java,
JAX-RS 2.0,
json,
RESTFul
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.
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.
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.
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.
Libellés :
Custom component,
JavaFX 2.0,
UI Component
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
Duke Anim in JavaFX 2.0 (b36)
This post is just the porting of DukeAnim in JavaFX 2.0 b36.
Libellés :
Duke Anim,
JavaFX 2.0,
KeyFrame,
KeyValue,
timeline
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.
So when I wanted to try the new animation API in Android 3.0, I wrote Droid Anim.
Libellés :
Android 3.0,
Animation,
new animation api
jeudi 26 mai 2011
JavaFX 2.0 Beta is there!
JavaFX 2.0 Beta has been released, but only for Windows* :(
http://www.oracle.com/technetwork/java/javafx/overview/index.html
http://www.oracle.com/technetwork/java/javafx/overview/index.html
For download it:
http://www.oracle.com/technetwork/java/javafx/downloads/index-jsp-136193.html
http://www.oracle.com/technetwork/java/javafx/downloads/index-jsp-136193.html
*Update 9 may 2011: JavaFX will be cross platform - Richard Bair
http://fxexperience.com/2011/05/is-javafx-2-0-cross-platform/
http://fxexperience.com/2011/05/is-javafx-2-0-cross-platform/
The documentation of the JavaFX 2.0 Beta is there
Even if JavaFX 2.0 Beta isn’t out yet, the documentation is already there
http://download.oracle.com/javafx/index.html
http://download.oracle.com/javafx/index.html
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
Libellés :
Android,
Android 2.2,
Froyo,
install,
Tips
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.
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)
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)
jeudi 23 septembre 2010
JavaFX 2.0 rebooted, round up of the links
The roadmap: http://javafx.com/roadmap/
Richard Blair: http://fxexperience.com/2010/09/javafx-2-0/
Osvaldo Pinali Doederlein: http://weblogs.java.net/blog/opinali/archive/2010/09/23/swing-20-coming
Stephen Chin : http://steveonjava.com/javafx-2-0/
Jonathan Giles : http://jonathangiles.net/blog/?p=916
Oracle Press Release: http://www.oracle.com/us/corporate/press/173728
Oracle Press Release: http://www.oracle.com/us/corporate/press/173728
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.
And the making of
http://www.chromeexperiments.com/arcadefire/
http://www.chromeexperiments.com/arcadefire/
Libellés :
Google Chrome Experiment,
Html 5 demonstration
Inscription à :
Articles (Atom)



