Tip #2: How to runAndWait with JRebirth Thread Engine

Last week I saw an interesting blog entry from Kynosarges that deal with the missing feature Platform.runAndWait(…) that was available into Swing.

While I was reading it, I figure that JRebirth Thread Engine already does the job !!!

As a remember JRebirth Application framework provides 4 kinds of threads:

  • JAT ==> JavaFX Application Thread to perform all graphical updates
  • JIT ==> JRebirth Internal Thread (perform JRebirth wave registration and other custom internal stuff)
  • JTP ==> First Thread Pool (perform long task)
  • HPTP ==> Second Thread Pool to perform higher priority task

Let’s see how to do run a UI task and wait before doing something else, we will play with some JRebirth Commands, the threading engine is totally hidden from developer sight.

Continue reading

JRebirth Workbench First Step

Today I share a short video about JRebirth Workbench work progression. I have uploaded it on YouTube some days ago but I didn’t blog about it.

I’ve just seen the Tom’s blog entry that demonstrated a really nice tweaked TabPane build with Jonathan and perhaps available soon in OpenJDK (see the blog entry here for more information).

My widget is not as nice as their but the major part of my work is related to integration into JRebirth Component project.

In 2 words you can consider that JRebirth [Core+Component] will do the same job than e4 by using a different approach ( A Model from JRebirth is equivalent to an e4 part).

PS: Some people can ask themselves why (TF***) I’m reinventing the wheel instead of using e4 whereas I’m also an Eclipse developer. The answer is given by the framework’s name itself ! I’m really confident that we can do complex things in a simple way and mainly thread-oriented.

I’m upset to see my Eclipse (IDE and RCP) lagging all the day… (and even crashing, Java8+Luna+m2e+W8 doesn’t work anymore on my laptop… :( )

Builders Revisited

You are probably informed that JavaFX builders are deprecated within Java 8 and will be removed from jfxrt.jar into Java 9.

The first time I saw ‘Builders’, I thought => “Oh, yet another dot-parenthesis bullshit !”. At this time I was reviewing JavaFX 2 beta API to replace our Flex stack, because we really needed multi-threading capabilities for managing complex and big data. (flex was still supported by Adobe…, and yes I’m a RIA fan :). It’s so easy to write cryptic and  obfuscated code in ActionScript 3 + MXML.

But I gave them a try and thanks to amazing Eclipse formatter, I have found them nice and really convenient (less verbose and allowing imbrication).

When I read Michael‘s blog post about them [link here], I thought: “Yeah!!!  these builders really rock !!”.

Only stupid developers never change their minds , no ?? :p

Continue reading

Participate to JRebirth Roadmap

As you probably noticed, a new poll is accessible on the right bar of the website related on JRebirth future road map.
Thank you to those who have already given their opinions (it’s so valuable for us).

I will now describe each feature with a little more details than few words written into the poll. All of them are ambitious but without challenge there isn’t any fun !
Obviously all minor changes will be still integrated, so don’t hesitate sending us some feedbacks, we are hearing you and want to build the framework you have ever craved.

Continue reading

JRebirth running on Equinox

Today I want to share with you the newer JRebirth goal: Application Modularization

Please note that a new poll is published on the right bar related to this subject.

This teaser show Mastering Tables application (built with JRebirth Application Framework) run as an OSGI bundle into Equinox runtime (Eclipse’s OSGI framework) and for sure with Java 8 runtime.

Further developments will be made to improve integration (runtime & build) and to fix some small issues (like log localization failure).

No extra OSGI bundles have been used (only equinox and gogo console ones).

Let me know if you have any remark

Tip #1: FXML Model Simplification

Today I open a new category of posts, I will try to publish periodically some tips about JRebirth Application Framework.

I begin with a FXML model simplification inspired by @Jerady adm4ee application, I discussed with him about reasons that drive him to use his own small application framework to develop his tool (more info about his tool on bitbucket).

He replies to me that he wants to try coding a whole application without using other external libraries to reduce the number of external dependencies (but the main advantage to use JRebirth is to solve all common threading issues… , by the way I suspect his application to freeze during long task performed into JavaFX Application Thread -[JAT])

Continue reading

JRebirth Application Framework 7.7.0 is released

Hi everyone !

I’m pleased to inform you that we have released JRebirth 7.7.0.

The most important fact is that JRebirth releases are now synchronized with Maven Central repository.

Please note that Maven coordinates and base package have changed so you should prepare your migration as soon as possible according to your project constraints.

You can find the full release notes here : stable.jrebirth.org/releaseNotes.html
and the installation procedure here: stable.jrebirth.org/doc/Installation.html

Continue reading