I think anyone still considering Java on the desktop should carefully read in what mess TomTom has put itself with its application, which is basically a rom update downloader with a terrible user interface. Which needs a 1.8 JDK on a platform which does not encourage Java and a supplier that is discouraging the use of this version.
I am using a few Java applications on my desktop: SoapUI, MActor and Idea. The only one with a decent user experience is the IDE. Little surprise, of course: who would develop in a language with a terrible IDE?
The vast majority of applications I have run into, have something in common, that I call "write once, be foreign everywhere". The only cross platform apps I have used, that I really enjoyed using, are made with Electron.
Electron, however, imposes a lot of limitations, since you need a bridge for every native feature you want to use.
I think that Swing was wrong and doomed to fail from day one.
I never investigated JavaFX, but it is not part of OpenJDK, so I would not bet on it.
This boils down to you complaining about java desktop apps not being native enough. Then you say you enjoy Electron. This is baffling as there is nothing more non-native looking than an Electron app.
Electron applications require deployment a single executable, not of a Java environment, plus the executable Jars. So, if you must develop a cross platform application, this is a definite plus.
Second, web interfaces can be engineered to be quite similar to native. For example, there is a strong resemblance between Visual Studio Code and Visual Studio.
If you compare SoapUI and Postman in their basic funztionality, in terms of user experience the Electron application is a clear winner.
So, if you have to be cross platform, Electron is a better option, in my view. At least, until I see JavaFX applications compiled to a statically linked executable with GraalVM becoming popular.
Electron applications require deployment a single executable, not of a Java environment, plus the executable Jars. So, if you must develop a cross platform application, this is a definite plus.
Electron bundles its runtime (chromium) with the app. You can can do the exact same thing with Java. There was a slight step backwards taken when javapackager was removed from the JDK in Java 10 since javapackager made it very easy to bundle the runtime. However, you can still bundle the runtime without javapackager and javapackager is coming back as jpackage in Java 14. (It was removed because it was actually part of JavaFX, even though it worked great even for non-JavaFX apps, so when JavaFX was split out javapackager left with it)
If you compare SoapUI and Postman in their basic funztionality, in terms of user experience the Electron application is a clear winner.
The Postman interface is a complete and utter mess. It is very hard to distinguish one UI element from another. This is a problem with almost all Electron apps (and web apps in general) since until somewhat recently layout in web apps was a complete hack. There is no way someone can look at the Postman interface and think it is a good example of usability and layout. I have the exact same issue with Visual Studio Code, it can be very hard to tell where one UI element starts and one ends, it is a huge problem when viewing files in the Project view.
Very useful information, thanks. I will give one more look at javapackager. Regarding web interfaces, this is an old issue. The hyperlink was thought of as a means of embedding relations within a test and it worked as such, while user interfaces have been thought through long and hard by specialists, to create UI toolkits. Then came the dynamic web and user interface devices exploded in a myriad of paradigms, some of which are definitely non well thought, I agree. In particular, I am not a fan of actions linked to hyperlinks, not buttons. It is always difficult to tell why some actions have buttons and some have less prominent UI triggers.
0
u/Capa-riccia Jan 04 '20
I think anyone still considering Java on the desktop should carefully read in what mess TomTom has put itself with its application, which is basically a rom update downloader with a terrible user interface. Which needs a 1.8 JDK on a platform which does not encourage Java and a supplier that is discouraging the use of this version.
This is the horror story in its full development
https://discussions.tomtom.com/en/discussion/comment/1680884
I am using a few Java applications on my desktop: SoapUI, MActor and Idea. The only one with a decent user experience is the IDE. Little surprise, of course: who would develop in a language with a terrible IDE?
The vast majority of applications I have run into, have something in common, that I call "write once, be foreign everywhere". The only cross platform apps I have used, that I really enjoyed using, are made with Electron.
Electron, however, imposes a lot of limitations, since you need a bridge for every native feature you want to use.
I think that Swing was wrong and doomed to fail from day one.
I never investigated JavaFX, but it is not part of OpenJDK, so I would not bet on it.