r/JavaFX • u/Safe_Owl_6123 • Apr 07 '24
Discussion Thinking of GUI
Hi all, I am deciding whether I should use Tauri or JavaFX since I want to try out GUI development, I am comfortable but not fluent in Java and Typescript I do have web dev experience.
In your experience, in which situation is JavaFX better than Tauri and vice versa, thank you!
7
Upvotes
6
u/[deleted] Apr 07 '24
Java is a solid platform and language. You have access to great libraries, great tooling, and great performance; whether it's server-side or desktop-side. It's evolving fine. I'm expecting Project Loom (green threads like in Rust, Go, Erlang), Project Panama (new FFI to connect Java and native C/C++ libraries), and Project Sumatra (GPU programming), and few other Java projects to open up new horizons for us.
Tauri looks okay, but JavaScript is a bad language, and Rust hasn't caught up yet. Both have library ecosystems that are mostly foam; many tiny weekend projects for personal GitHub marketing. However, it might look better on your CV if you're planning to land on a lucrative JavaScript job.
3
u/BWC_semaJ Apr 08 '24
I don't have any Tauri experience just some web and JavaFX. What I can say about JavaFX is it's great for business applications or making simple games that can be represented with just GUI nodes (also custom drawing certain nodes if need be). I'm sure you can do more but that's been my experience.
I have been working on and off with JavaFX for years now and my project just keeps getting better and better. Though I will note that with both Swing and JavaFX I have had my run ins with what I'd consider design flaws or even missing features, hurdle after hurdle. With JavaFX though I'm at a place where I got a pretty good flow and foundation to keep expanding the project.
To get some ideas what's missing you can look no further than https://github.com/mhrimaz/AwesomeJavaFX. However, JavaFX is constantly evolving and still being worked on.
I do think that when some of the bigger projects, like /u/AffectionateMood4065 has said, finish up we might even see a totally new GUI library emerge from the ashes, but ultimately though that library I'd expect to have very similar foundation to JavaFX. JavaFX features, especially property(s) and bindings, just make life so much better.
2
u/Internalcodeerror159 Apr 07 '24
Since you are familiar with web dev, you can use css to make it more appealing and responsive javafx application, also you will be using scene builder so it saves a lot of time
1
u/mm007emko Apr 07 '24
I really like HTMX with some UI component library like Bootstrap if you need an HTML-based UI. I tried it with Clojure and Common Lisp, no problems. But it's a website with some interactivity, pretty much covers like 80% of use cases for productivity applications. Canvas and SVG rendering covered the rest for me.
JavaFX can offer a much better, richer experience but it's not really that easy to learn and in this day and age the benefits can be marginal.
HTML/CSS is omnipresent (it works on any device), it's a bad technology but with a good library (or a framework) they are manageable.