r/java • • Mar 10 '21

JavaFX 16 Released

https://openjfx.io/highlights/16/
108 Upvotes

37 comments sorted by

31

u/01110101_00101111 Mar 10 '21

Java 16 itself is coming on the 16th:

http://openjdk.java.net/projects/jdk/16/

11

u/BELLSOFT Mar 10 '21

Can't wait

3

u/Chaoslab Mar 10 '21

If only it had performant video playback. (Can barely play two 1280x720 videos at once were as with JavaCV can play 16 1280x720 videos at once and still be real time).

1

u/PartOfTheBotnet Mar 10 '21

Got a demo somewhere?

2

u/Chaoslab Mar 11 '21

Planning on releasing my VJ software in the near future.

Stack exchange does have code examples for both JavaFX and JavaCV video playback.

2

u/Mandelvolt Mar 10 '21

It was my understanding JFX isn't a part of the standard library anymore,this changes or is it the community package?

3

u/SergeantFTC Mar 10 '21

This is the standalone package

3

u/nlisker Mar 11 '21

It was removed from Oracle's commercial JDK and it is now downloaded separately. It was never part of OpenJDK's JDK. So, this only affects you if you used Oracle's JDK.

1

u/ducda8 Mar 11 '21

Thanks, anyway, how can i deploy a javafx app? To run on others machine without installing java runtime? I mean stand alone app

1

u/nlisker Mar 11 '21

You bundle the necessary JavaFX modules just like you would bundle the JDK modules. Look here https://openjfx.io/openjfx-docs/ at Runtime images.

1

u/ducda8 Mar 12 '21

Thanks, I will check it out

1

u/ThreeSixty404 Mar 22 '21

You can create native packages with jpackage, that tool is great!

-1

u/XenomindAskal Mar 10 '21

I still think 6 month release cycle is too much. Something like a year would be much better.

Also lot of companies are still on Java 8.

2

u/brunocborges Mar 11 '21

To be clear, this post is about JavaFX, not Java. :-)

0

u/[deleted] Mar 10 '21

[deleted]

7

u/wildjokers Mar 10 '21

What controls are you wanting them to add?

0

u/[deleted] Mar 10 '21

[deleted]

9

u/wildjokers Mar 10 '21

Maps widget doesn't seem like something that should be in JavaFX directly because it would only be used by a very small percentage of apps. That seems more like a control that should be provided by a 3rd party library.

I don't know what a snackbar is.

4

u/01110101_00101111 Mar 10 '21

A good maps library is Gluon Maps

2

u/wildjokers Mar 10 '21

Nice! I was unaware of its existence. Thanks for the pointer, might come in handy one day.

3

u/PartOfTheBotnet Mar 10 '21

I don't know what a snackbar is.

Android stuff.

1

u/nlisker Mar 11 '21 edited Mar 12 '21

If you're looking for Android specific components go to Gluon Mobile, they have snackbar and maps.

Normal css support will conflict with... normal css. Adding `-fx` keep it conflict free and helps distinguish which css belongs to which part.

The fact that you didn't even bother to check if a progress indicator exists (it does) shows that your criticism holds no water. Do your research before complaining.

18

u/nlisker Mar 10 '21

Components? You mean controls? If so, there were and are no plans to add new controls, so you're not using the right measurement for releases. "Again" implies that you are waiting for something specific, but did you ever check if there are plans to add that something?

1

u/emberko Mar 11 '21 edited Mar 11 '21

Imho, font icon component should have been added long ago. Ikonli is awesome, but basic class needs to be a part of standard API. Icon fonts is nowadays default even for desktop apps, not to mention mobile.

1

u/nlisker Mar 11 '21

If you have a request, I suggest you sent a mail to [email protected]. But consider these: how hard is it for a developer to add that font themselves? What are the license requirements for an external font? What additional maintenance burden does it entail?

Maybe it's a good idea, but it can't be an afterthought, it needs to be examined carefully.

1

u/ThreeSixty404 Mar 22 '21

It's useless, the devs rarely interact with the community. Plus even if you manage to reach them and get their response they will probably say that they are not interested in X feature or that they will evaluate it, the process is really slow, and it could take months or even more.

1

u/nlisker Mar 23 '21

As a regular contributor, I can say first hand that this is not very correct. The process is slow, that's true, they are understaffed, but it's far from useless. I've had literally all the features I wanted to get in accepted. Some emails fall between the cracks, I see that too, but those are the rarer cases, not the opposite.

What features did you suggest that were rejected? In many cases, people have their own idea of what JavaFX should be, and it is not aligned with what it is, so they think the devs are misevaluating or don't care. But in reality, they have, as experienced maintainers, a better idea of what should go in and what not.

1

u/ThreeSixty404 Mar 23 '21

Two issues sent, one rejected, one pending indefinitely.
The first one: I proposed to rewrite the tree view control because compared to many other UI framework it's just inadeguate (see syncfusion wpf treeview for example). The second one: I found a bug in the css system, when you change the user agent stylesheet dynamically the control doesn't change style, to fix it a previous commit must be reverted and reapplyCss must be called on change.

Oh and there are many many more bugs that I didn't even bother to report, what I did instead was to build the buggy control from scratch, they are way more simpler that JavaFX ones, they are easily understandable and readable, and they simply work. Plus if I find a bug I can immediately fix it because I'm not lazy as JavaFX devs.

Last but not least, no, they don't have any clue of what to do, they are letting JavaFX die slowly. If it is still used is thanks to the community which provides libraries, workarounds, bug fixes. An example? Recently I rebuilt from scratch the list view control because in one of my personal project the layout was buggy for some reason, to be honest I was not surprised at all. I rebuilt the control with Flowless. They improved the Virtualflow performance in JavaFX 16 right, well I run the benchmark and it seems like Flowless is still way better than JavaFX's Virtualflow and everything works like a charm.

7

u/[deleted] Mar 10 '21

[removed] — view removed comment

5

u/wildjokers Mar 10 '21

What does this even mean?

9

u/Drakoala Mar 10 '21

Probably that this 'release' is really just a bunch of bug fixes.

2

u/ThreeSixty404 Mar 22 '21

Yep, JavaFX devs are just sitting there doing nothing. But, don't underestimate the community, there are a lot of projects and libraries that aim to make JavaFX better.

Also, in my opinion this is because of JBS too. That system is pure garbage there's little to no interaction between the devs and the community. GitHub Issues would be way better.

2

u/emberko Mar 11 '21 edited Mar 11 '21

Yep, sadly JavaFX is pretty much in maintenance mode. Oracle declared that it will be supported until 2025, but they obviously consider JavaFX as legacy, so no fancy features. They call it "stewardship".

2

u/nlisker Mar 11 '21

That's misinterpretation. JavaFX will be supported with Java 8 until 2025. JavaFX itself will be supported for much longer.

1

u/[deleted] Mar 16 '21

Its still dying, swing is also dying, but it atleast gets the included in jdk life support.

I have said it multiple times java gui is too small of a market for 2 solutions

1

u/[deleted] Apr 08 '21

It's not dying... it's got a lot of support, and still great for internal business apps (where it's always been popular).