7 ms·
JavaFX 11 is released
- pjmlp 8y agoWith lots of nice fixes.
- shock 8y agoDoes anyone know if font rendering on Linux respects the OS hinting settings? I've long wanted to create GUI apps in Java, but stayed away because the font rendering was what I consider ugly. EDIT: Why on earth would someone downvote this?
- foobarrio 8y agoI don't use Netbeans and to some extent IDEA just because the fonts don't look right. Tons of work went into the font rendering of Windows and OSX/macOS. Java apps that use the Java font rendering bypass all that work look like horse-shit. True Type Fonts need a little VM in them for processing hints that was patented by Apple. FreeType got around this issue by implementing automatic hinting instead of executing the manual hints. * https://en.wikipedia.org/wiki/TrueType#Linux_and_other_platforms https://en.wikipedia.org/wiki/TrueType#Linux_and_other_platf... Windows simply acquired a proper license for TTF rendering. I think these patents caused issues for Swing. The Java font rendering in Swing components was 100% Java and did not use any of the OS font rendering. IIRC these patents have long expired so I don't see why the fonts couldn't look better. I only do Java on the backend so I have no idea how Java guis look these days.
- pjmlp 8y agoThis was only an issue for those that are ideologically against installing Sun/Oracle's JDK versions or any other commercial JDK like IBM's, as the rendering code was never part of OpenJDK, hence why InteliJ started bundling their own variant of OpenJDK. Meanwhile with the transition to OpenJDK as official JDK the code has been merged into OpenJDK. http://mail.openjdk.java.net/pipermail/discuss/2017-November/004630.html http://mail.openjdk.java.net/pipermail/discuss/2017-November...
- michaelmrose 8y agoI recall running idea with openjdk and observing very ugly font rendering. http://www.webupd8.org/2013/06/install-openjdk-patched-with-font-fixes.html http://www.webupd8.org/2013/06/install-openjdk-patched-with-...
- computer 8y agoThat link is from more than 5 years ago. No problems these days with IDEA.
- Marazan 8y agoIt's perverse that after Flash/Flex are 'dead' that Sun's mutant attempt to compete in the space is still going.
- sebazzz 8y agoWhy? JavaFX is no different than WPF. It is a GUI toolkit.
- ungzd 8y agoIt was marketed for a long time to use primarily for Java applets. Moreover, it was marketed as if "old sucking java applets was replaced with javafx", in reality it replaced Swing in applets, not applets. Then, for some period of time, it was marketed as kiosks platform. I didn't know that it's just a GUI toolkit until recent time when someone told me so. Its website still not says anything sane, what it is. "client application platform for desktop, mobile and embedded systems built on Java". Well, Java itself is application platform for desktop and whatever apps.
- dxxvi 8y agoFlash/Flex need a browser to run, don't they?
- brbrodude 8y agoIf I'm not mistaken, JavaFX initially was planned to be a rich-gui-for-everything I think, it was supposed to be used in web applets, desktop and for mobile I think, the ground moved ahead of it way faster tho
- tsumnia 8y agoThat's how it was presented to me. AWT was platform dependent, so you'd get Windows/Mac/Linux-specific inputs like radio buttons when they were created. Swing changed Java's GUI development to be platform independent, making radio buttons appear the same across platforms. With the emergence of mobile devices, and therefore more rendering engines, JavaFX was introduced to to unify design across device (or become device independent). That said, I suppose JavaFX never took off. I think it wasn't that people hated it, but that the people that would be the primary adopters had already built their applications in Swing or as Applets years/decades ago. JavaFX was an improvement, but convincing a company to change a mission critical GUI would be too costly to do. Coupled with how GUI education in CS is abysmal, everyone stuck with Swing because they didn't want to "learn a new thing they already hated".
- lambdadmitry 8y agoAre there any examples of great desktop apps done in recent-ish JavaFX? Something comparable to native MacOS apps like Pixelmator or Sketch?
- saagarjha 8y ago> Pixelmator or Sketch These apps have had a lot of time put into their design–it's not just "we slapped Cocoa on this and now it's beautiful". Native apps being better is selection bias, since people who spend time on design aren't going to settle for Java messing up the UI or UX–so they just all use AppKit.
- lambdadmitry 8y agoThat's not exactly true or those people won't settle for Electron either. Obviously that's not the case and I wonder why. Is it just that Electron apps are easier to do, native apps look and feel better, so JavaFX is a sort of no man's land?
- toyg 8y agoThe point of Java on the desktop was cross-platform compatibility, but electron now occupies that same space — and decent JS developers are cheaper and easier to find than decent Java-desktop developers. If cross-platform support is not a requirement, desktop Java is not even in the running.
- pjmlp 8y agoJavaFX web site has a few nice looking examples. https://openjfx.io/ https://openjfx.io/ Other than that, it is up to a product team to actually have designers helping defining the final L&F.
- lambdadmitry 8y agoDSTE and Gluon Maps look great there, but I didn't find actual artifacts to play with. The app I was able to find (https://github.com/RohitAwate/Everest https://github.com/RohitAwate/Everest) has a very poor scrolling behavior on MacOS and generally seems pretty simplistic compared to its Electron counterparts.
- e12e 8y agoWait, wasn't JavaFX dead? Or maybe that was just webstart? I just seem to recall looking.. A year ? Back and not finding any recommended, "this will continue to work" gui for Java?
- toyg 8y agoIf i remember correctly, webstart has been deprecated together with pretty much anything that had anything to do with browsers and plugins. JavaFX is a bit more generic in its applications, I believe (not really my field of expertise).
- tinustate 8y agoNote that webstart is plugin less for quite a long time. The java installer registers a mime type. This way the browser simply offers to open (or save) the startup file, using the default save dialog, with the webstart executable.
- grandinj 8y agoNow that Oracle has withdrawn resources from the project, I wonder what its future is going to be. I was really hoping it would become a Swing replacement, but so far there are still too many unfilled gaps for it to replace our (fairly extensive) production usage of Swing.
- pvg 8y agoWhat are the gaps, in your case?
- commandlinefan 8y ago> JavaFX 11 Is that the version number, or how many people are using it?
- zombie2 8y agothats cold man
- jillesvangurp 8y agoHarsh but fair. I've been doing java for about 25 years and consider myself an expert in that language. I know absolutely nobody that does desktop applications in Java these days (swing or javafx) at this point and that has been true for well over a decade. I get approached by recruiters for lots of shit I would never do but Java desktop aint one of those things. The last time I did anything swing related must have been 15 years ago and it was a questionable choice then already. The only popular swing applications I know of are developer tools like intellij. I've never encountered anything javafx in the wild.
- L0stLink 8y agoHi, there are a few things I have wanted to ask from someone who is working with Java professionally as it is the programming language I know best (for context: I am a student who will be graduating in a year). What is Java still being used for? is it mostly Spring work and Android apps or are there still other use cases? What do you use Java for? or What is the nature of work that you do which makes use of Java? It would be very helpful if you could answer these.
- nambit 8y agoAs someone else who uses java professionally a lot, let me weigh in. Most large services are backed by web servers in the backend. What do you imagine most people use for web/http servers? Java. What other language can you use? C++? Large scale services are too error prone, especially if not maintained by experienced devs and besides, no one codes restful services in C++. NodeJS? It's weakly typed and is javascript. I know it's really popular but rarely used in large backends not fronting a UI. Java is still king almost everywhere.
- floatboth 8y ago> The recommended workaround is to use the Xorg server instead of the Wayland server when running JavaFX applications. Note that Wayland is not supported by JDK 10 or JDK 11. Even with the switch to GTK 3, there's no native Wayland support? WTF
- L0stLink 8y agoI highly recommend checking out Gerrit Grunwald's work in JavaFX he has made some very nice JavaFX based controls which you an checkout on github[0], there are also demos on his youtube channel[1]. [0] https://github.com/HanSolo https://github.com/HanSolo [1] https://www.youtube.com/channel/UCCPbe_sGZuimJUyd2rdR7kA https://www.youtube.com/channel/UCCPbe_sGZuimJUyd2rdR7kA
- iamcreasy 8y agoIf I want to build fully custom GUI is it better to start at Swing(Learning from book: Filthy Rich Client)? or JavaFX has made it easier to build custom GUI components.