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
Paddy's Weblog
Paddy's Techno (Java, Java EE,Java FX, Ruby, Mac OS X, ...) Weblog
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
Inscription à :
Articles (Atom)