Category Archives: Tutorials

All tutorials post

How to Use ‘CardLayout’ like Panel with JRebirth StackModel

JRebirth Application Framework provides a custom ‘CardLayout’ as a JRebirth component by using its dedicated pattern wB-CSMvc.

The StackModel class will do the job (provided by artifact), you can find 2 usages here and here.

Each ‘card’ model can be called using a enum|modelKey identifier, and each stack has an unique name.

The first sample is used for the JRebirth Demo Application, it’s a pretty simple application that will allow to display other JRebirth showcase applications dynamically loaded as JRebirth module (from a separate and independent jar).

Continue reading

How JRebirth deploys to JCenter and Maven Central

This post will describe briefly how we are managing the release of all JRebirth artifacts by using Maven Build, Jenkins, Artifactory, Bintray/JCenter and Nexus.


All JRebirth artifacts are deployed to several repositories as explained into the official documentation page : Installation

As you probably know, JRebirth is built using Maven tool, really convenient to package binaries, javadoc and sources jar but also to make and deploy the jrebirth website with syntax highlighting (thx to doxia include macro). It allows to break the build if a piece of code used into documentation is missing (ie: after some refactoring changes).

Continue reading

CDI vs JRebirth

A lot of blog posts are related to CDI for JavaFX applications.

But why do you need to add a complex mechanism to perform simple task, you will answer that all these magical things will simplify developer’s life.

You’re wrong, magic things that add additional stuff are not so useful when they don’t simplify the whole feature.

Why should we inject loader or other utilities classes to do a common task ? It’s better to simplify the common task itself !

Continue reading

How to build and package JavaFX 2 Application with Maven

I hate Ant, and I can’t begin to work on a project that requires using it.

So like many people I want to build my brand new JavaFX 2 applications with the best toolchain available for Java : Maven.

I planned to create a custom maven-plugin to do the job, but by using existing ones we can do it.
Some things must be improved but the essential works.

The results is a zip file containing all dependencies (jar) with a jnlp file used to launch the application online or offline.

Continue reading