Need advice about which tool to choose?Ask the StackShare community!
Electron vs JavaFX: What are the differences?
Developers describe Electron as "Build cross platform desktop apps with web technologies. Formerly known as Atom Shell, made by GitHub". With Electron, creating a desktop application for your company or idea is easy. Initially developed for GitHub's Atom editor, Electron has since been used to create applications by companies like Microsoft, Facebook, Slack, and Docker. The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on io.js and Chromium and is used in the Atom editor. On the other hand, JavaFX is detailed as "A Java library for building Rich Internet Applications". It is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.
Electron and JavaFX belong to "Cross-Platform Desktop Development" category of the tech stack.
Electron is an open source tool with 75.9K GitHub stars and 9.94K GitHub forks. Here's a link to Electron's open source repository on GitHub.
According to the StackShare community, Electron has a broader approval, being mentioned in 291 company stacks & 1933 developers stacks; compared to JavaFX, which is listed in 6 company stacks and 18 developer stacks.
Pros of Electron
- Easy to make rich cross platform desktop applications66
- Open source51
- Great looking apps such as Slack and Visual Studio Code13
- Because it's cross platform7
- Use Node.js in the Main Process3
Pros of JavaFX
- Light10
Sign up to add or upvote prosMake informed product decisions
Cons of Electron
- Uses a lot of memory18
- User experience never as good as a native app8
- No proper documentation4
- Does not native4
- Each app needs to install a new chromium + nodejs1
- Wrong reference for dom inspection1
Cons of JavaFX
- Community support less than qt1
- Complicated1