@Jeffrey Johnson - Thank you! I would choose JavaFX for any new development. Swing is an older UI toolkit and is no longer being enhanced by Oracle and may be discontinued at some point in the future. If I were looking for a job, on the other hand, I would learn Swing first because there is so much legacy code out there that still has to be supported. But I would also learn JavaFX because it can do everything that Swing can do and more.
I like that you do ActionListener via inner class. But I think it'll be better to show audience a lambda method too. It's very hard to get used to lambda notation, better to watch that lambda lines more often
@Alex Op - It is a conscious choice to use the anonymous inner class when I create listeners as they are easier to understand. Maybe I will do a video to show all of the options for creating listeners.
@Alex Op - There is a JFrame import. They are folded at the top of the MainFrame class in Eclipse. You can download the project code from GitHub (link in video description). Cheers!
Continuing with our Java Swing tutorial series, today we will learn how to use the JTextField Component. Please Like, Comment and Subscribe. Cheers!
Great series and Thank you for this video.
@Kavishka Madhudan - My pleasure! Glad yo like them! Thank you for the kind words. 🙏
The audio and video are out of sync on many of these presentations. However, this series hs been very helpful to me. Thank you!
This is a great series too. So if you were building an app from the ground up, would you go with Swing or JavaFX?
@Jeffrey Johnson - Thank you! I would choose JavaFX for any new development. Swing is an older UI toolkit and is no longer being enhanced by Oracle and may be discontinued at some point in the future. If I were looking for a job, on the other hand, I would learn Swing first because there is so much legacy code out there that still has to be supported. But I would also learn JavaFX because it can do everything that Swing can do and more.
I like that you do ActionListener via inner class. But I think it'll be better to show audience a lambda method too. It's very hard to get used to lambda notation, better to watch that lambda lines more often
@Alex Op - It is a conscious choice to use the anonymous inner class when I create listeners as they are easier to understand. Maybe I will do a video to show all of the options for creating listeners.
7:03
Why there are no JFrame imports? Or they simply didn't show in eclipse?
@Alex Op - There is a JFrame import. They are folded at the top of the MainFrame class in Eclipse. You can download the project code from GitHub (link in video description). Cheers!
Sir please make a video on javafx textformatter
@Aditya udasi - Thank you for the request! I have a video on The JavaFX TextFormatter that is almost finished. Look for it soon! Cheers!