This is incredible. I've only used the Intellij based video tutorial on integrating both spreingboot and JavaFX...this is a bonus! Thanks so much for your teaching 😊
@MarwanAmeen89
5 жыл бұрын
I used spring boot with JavaFX and I was so freaking amazed.
@nito__moreno
3 жыл бұрын
Oldie but goldie. Thanks.
@emmanueldamour1521
5 ай бұрын
Thank you so much this tutorial saved my life. Much thanks
@TheLinuxExpert
2 ай бұрын
Worked like a song. Thanks :-)
@lenachernyak4639
4 жыл бұрын
The best and the easiest explanition.Thank you
@delsix1222
8 ай бұрын
Thanks a lot. Very useful and such a clear explanation
@dasampharos9845
5 жыл бұрын
Something that would be a great follow up to this that I'm having a difficult time with now is how to test JavaFX Spring applications. I know TestFX exists, but it doesn't "just" work with @SpringBootTest
@BeautifulTurkish
2 жыл бұрын
Where do you use reactive-web dependency?
@jonassilvag.4354
4 жыл бұрын
Amazing tutorial, ty very much!
@javasoccernut
5 жыл бұрын
I used spring dm in a couple of large eclipse rcp apps
@nickoskordas9247
2 жыл бұрын
Great video, but if I want to switch stages (load another fxml on button click) how can I do it? (I'm trying to do a login system, to switch between login screen and main screen)
@blackandyelllow5891
2 жыл бұрын
Did you find the answer of the question? Help would be much appreciated
@nickoskordas9247
2 жыл бұрын
@@blackandyelllow5891 Yes I did. I just created a setter for the ApplicationContext in the main window controller and I called it from the login controller in the login method. You also need to do that if you use a logout etc. It's probably not the cleanest way but it does work. Example below ---- LOGIN METHOD CODE --- @FXML public void login(ActionEvent event) throws IOException, NoSuchAlgorithmException { if (!tfemail.getText().isEmpty() && !pf_pass.getText().isEmpty()) { String email = tfemail.getText(); String pass = getMD5(pf_pass.getText()); userService = ac.getBean(UserService.class); if(userService.authenticate(email, pass)){ Notary not= userService.findByEmail(email); long id=not.getCode(); ((Node)event.getSource()).getScene().getWindow().hide(); FXMLLoader loader=new FXMLLoader(getClass().getResource("/home.fxml")); Pane root = loader.load(); Home home = loader.getController(); home.setAc(ac); home.setCode(id); Stage rgstage=new Stage(); Scene scene=new Scene(root); rgstage.setTitle("iNotary"); rgstage.setScene(scene); rgstage.show(); ... ______________________________________ ----FROM MAIN CONTROLLER_________ private ApplicationContext ac; public void setAc(ApplicationContext ac) { this.ac = ac; }
@LiamTheCC
Жыл бұрын
@@nickoskordas9247 Thank you for posting this. Was having the same issue.
@gerdsfargen6687
9 ай бұрын
@nickoskordas9247 you the man! 😊
@gerdsfargen6687
9 ай бұрын
@@nickoskordas9247 thelo na se efharistiso!
@zeljkosh
5 жыл бұрын
Just a quick question if you could answer, would it be possible to use javafx and spring boot but without FXML ? all UI would be done in javafx code
@bonammanikanta6682
4 жыл бұрын
Not possible
@gerdsfargen6687
9 ай бұрын
@@bonammanikanta6682I came to this in 2023. Is there no possible way to do this ...as you could simply add the code into a StageInitializer Class could you not?
@zeegleradventures0924
3 жыл бұрын
Do you have github Repo for this? I tried it but get some errors after coding your tutorial.
@SpringSourceDev
3 жыл бұрын
github.com/spring-tips/javafx
@linsspinho1
2 жыл бұрын
Thats nice!! BUT what about mapping entities as javafx uses beans properties! Spring will recognize that????
@phill13able
Жыл бұрын
I keep getting this weird error which says the modena.css isn't found
@chliu
5 жыл бұрын
this is awesome, thanks...
@oneshappapp4944
4 жыл бұрын
Thank you for this content. Question, how would i go about calling and hiding other UI's?
@strohkoenig
3 жыл бұрын
You'd let Spring inject the applicationContext into your Controller and push a new StageReadyEvent to it. The event's constructor is not being called with the primaryStage, but with a simple new Stage() as argument instead.
@user-wy4el6zu1f
4 жыл бұрын
I have successfully ran the app, but i can't find a way to properly go to another fxml - i get a java.lang.nullpointerexception. Thing is that it always gives the error when i run a method inside the controller. As i made my research, i found out that spring must manage the controller for the fxml. But i cant find a way to do that. Only the first fxml that will get loaded works well with it's controller. @SpringDeveloper could you help me on that please?
@user-wy4el6zu1f
4 жыл бұрын
When i had my previous app without spring, i had a class "browser", and by using an instance of this browser class i was getting the stage and i was setting another scene using another fxml.
@TimK_Official
4 жыл бұрын
I have repeated all lines of code in video and Spring Boot dont want to show stage frame :\
@freddygamboa3581
3 жыл бұрын
Wooooo !!!!
@siddharthasharma2240
3 жыл бұрын
Can anyone help or spring developer With this example ,actually I configured spring JDBC template in same as we do in web application but It gives null in StageListner. How to do it? If possible please show add one video spring JDBC with this example at least..
@Zurenio
3 жыл бұрын
OK... you are a very good programmer. But try to mix Spring Boot with JavaFX is absolutly INSANE...!!
@stressfreezoneukandahuru1657
5 жыл бұрын
Nice
@batatarugal
2 жыл бұрын
You could left the source code for us.
@geliangzhu9136
5 жыл бұрын
how to connect mysql (spring+javafx+mysql)
@DystopianSnowman
5 жыл бұрын
The same way as you'd do it usually with Spring: add Spring Data & JDBC dependencies, configure it in your application properties. Done. Every tutorial about it still apply in this scenario.
@sudhik4013
4 жыл бұрын
It's only working in Fist controller.. It not working in second controller throws the null pointer exception
@rosshoyt2030
5 жыл бұрын
😋
@vincentmax4571
5 жыл бұрын
1st like 👍
@mambisizempare9671
5 жыл бұрын
Javafx 2019 lol
@davidsalleyezonme1283
5 жыл бұрын
There is something bad use it?!
@kotivideos7140
5 жыл бұрын
@@davidsalleyezonme1283 its dead, you have electronJS for desktop and soon flutter for desktop too
@evko9264
5 жыл бұрын
@@kotivideos7140 and you instantly start to suffer with all this some kinda Apps...like skype and so on...because in one day js devs think that they could implement backend)
@kotivideos7140
5 жыл бұрын
@@evko9264 flutter is not js it will take over soon
@SergiuszRoszczyk
5 жыл бұрын
Koti Crypto how mobile framework will take over desktop app? (Migration from desktop to mobile excluded)
Пікірлер: 54