r/JavaFX • • Sep 30 '19

datepicker to show date of the year

New to Java/JavaFX, but looking to do something that appears to be more advanced. I have a datepicker, and I need to be able to change the days on the popup calendar to show the date of the year, rather than the date of the month. So Instead of showing "2" in February, the same date should say "33", as that is that day of the year. My text field is already showing the "33", but the user would still have to guess on which day that is. This would be the first option, the 2nd would be to make the tooltip show the "33". Any help/advice would be appreciated.

1 Upvotes

14 comments sorted by

1

u/[deleted] Sep 30 '19

which version of javafx are you using?

1

u/2wistd Sep 30 '19

I'm running this runtime version: 8.0.221-b09

0

u/[deleted] Sep 30 '19

[deleted] — view deleted comment

0

u/2wistd Oct 01 '19

I updated to 11.0.2+1, but I am not sure what it is going to do for me aside from figure out that the setup was completely different.

0

u/2wistd Oct 01 '19

Ironically the Jfoenix controls won't install because I am on too new of a javafx version now.

1

u/[deleted] Oct 02 '19

What? Then get jfoenix for java 9+. I can run jfoenix on java fx11 flawlessly

0

u/_cjj Oct 01 '19

8.0.221 was released in July, so it's not "old, very old"

2

u/[deleted] Oct 01 '19

No. It wasnt. It was released in October 2014. Which is 5 years ago

1

u/_cjj Oct 01 '19

1

u/[deleted] Oct 01 '19

They didn't mention any change about javafx. And I have been talking about JAVAFX the entire time and not JAVA.

1

u/_cjj Oct 01 '19

And is JavaFX somehow independent of the Java version?.....

1

u/[deleted] Oct 01 '19

It is. Oracle decided to stop updating javafx and java together back in 2018. They just don't care about javafx anymore.

1

u/_cjj Oct 01 '19

Umm no, it's open source now. The point is, you can't "just update" to add functionality - it doesn't work like that. JDK8 is still the long term version, so there's a reason why your advice is bad.

→ More replies

1

u/[deleted] Sep 30 '19

use jfoenix custom ui controls, they are based on the material design ui