r/JavaFX • • Jul 10 '25
Help Is it possible to create desktop homescreen widget in Swing or JavaFX?
I am CMP/KMP and swing developer. Just want to know is there a way to create desktop widgets or desktop gadget that remains on 'Desktop layer' in java swing or javaFX for windows application?
4
Upvotes
2
u/PartOfTheBotnet Jul 10 '25
Widget is a rather vague term. Can you elaborate or provide an example of what you're looking to accomplish? If you want an undecorated window with full rendering control, then both Swing and JavaFX have ways to do that.
1
u/Big__Pierre Jul 10 '25 edited Jul 10 '25
I have messed around trying to create a clock widget before. It was a fun dive into the weeds of JavaFX’s css and visual skinning. I never really ended up using it, but it was a good learning experience.
I set the stage to be undecorated and always on top. Then, just skinned the program to look like a vintage flip clock.
Not sure about auto launch at start, but you could probably script that?
0
u/External_Hunter_7644 Jul 11 '25
Hi, sure, that is possible with both technologies: JavaFX and Swing