News from the Modular JavaFX Application Framework

Once upon a time I started creating an application framework (named 'mfx', for 'modular JavaFX') with JavaFX on the NetBeans Platform. Today I updated it to NetBeans Platform 8 and JDK 8, which means I removed the wrapped jfxrt JAR, since that's now on the classpath of JRE 8.

Added a few small other features and here's a small starter app created on mfx, showing a JavaFX menubar and toolbar populated from the 'menu' and 'toolbars' folders in the NetBeans System FileSystem, as well as some open windows with rudimentary tabs (which should be changed to JavaFX tabs):

Project page:

https://java.net/projects/mfx

The difference between this and the 'efx' framework (which was started by Sven) is that I'm not recreating the whole world, just creating JavaFX components that replace NetBeans Platform Swing components, and then populating their content from the NetBeans System FileSystem.

A nice aspect to all of this is that stylesheets can be used. For example, the menubar is styled like this:

/*Menu Bar*/
.menu-bar {
    -fx-background-color: lightblue;
}
/*Menus*/
.menu .label {
    -fx-text-fill: black;
}
/*Menu Items*/
.menu-item:focused {
    -fx-background-color: greenyellow;
}
.menu-item .label {
    -fx-text-fill: black;
}

A lot still needs to be done, and some parts may not be doable, but anyone interested in working on it with me is welcome to join in and anyone wanting to base their application on it is also welcome to do so.

Comments:

Dear Geertjan,

Very good news.

Finally, I wish we will have a complete version with Java Fx.

It's just a trial or the final goal is to migrate all the platform to Java Fx.

Posted by Stanyslas Matayo on July 02, 2014 at 08:26 AM PDT #

Wow!!! That is some great news !!!
Is it stable enough to be adopted into commercial grade apps. I would like to know the stability story of this project. Can you please point me out some details???

Posted by Vignesh Arjunan on July 02, 2014 at 09:09 AM PDT #

It would be great to have a list of things you consider necessary to do, as a starting point to possible colaborators.

Posted by rcpacheco on July 02, 2014 at 11:36 AM PDT #

Thanks for the enthusiasm. Yes, it can already be used. Probably several things to fix still, e.g., the mouse doesn't work on menus, only the keyboard works there, don't know why, need to investigate. Take a look and feel free to contribute.

Posted by Geertjan on July 03, 2014 at 06:43 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« July 2015
SunMonTueWedThuFriSat
   
4
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today