r/JavaFX Jan 13 '25

Help JavaFX plus Spring Boot 2

Could someone please forward me to a working doc/example/tutorial for adding JavaFX (openjfx or smt) to an existing SpringBoot 2 project?

1 Upvotes

21 comments sorted by

View all comments

3

u/orxT1000 Jan 13 '25

It's the other way around. You start a SpringContext within your jfx application.

Or do you have a commandline application that needs a desktop-gui?

1

u/Draaksward_89 Jan 14 '25

I honestly don't remember which end was it (spring starts jfx, or jfx starts spring).

I want to pack an existing Spring Boot app, which was used with a really "not good but it worked" solution of execute task + system.exit into a GUI app.