News for hackers. Stuff that matters.
Re:Show HN: Hacker News desktop application in Kotlin/Swing by hasenj on Saturday October 07, 2017 @10:14PM (#15426683)
The other day there was a post recommending the use of JavaFX.

I would really like to see a non-trivial app built on JavaFX in Kotlin, with the following properties:

- Does not look ugly.

- Is not composed of _merely_ OEM widgets. But includes custom elements, like one would normally see on websites (and by extension, Electron apps).

- Is lightweight and response, not just in terms of CPU and RAM, but in terms of user experience (think VSCode vs Android Studio).

Re:Show HN: Hacker News desktop application in Kotlin/Swing by sandij on Sunday October 08, 2017 @02:42AM (#15427230)
Not sure it meets all 3 requirements, but last time I tried I was rather impressed by the Nightcode Clojure IDE built with JavaFX:

https://sekao.net/nightcode/

Re:Show HN: Hacker News desktop application in Kotlin/Swing by prophesi on Sunday October 08, 2017 @09:04AM (#15428044)
Oh, I didn't know that was written in JavaFX. I used it a lot when I was first getting into Lisp languages. It's pretty sweet.
Re:Show HN: Hacker News desktop application in Kotlin/Swing by ssijak on Sunday October 08, 2017 @02:26AM (#15427199)
I made JavaFX app for my company. It is in the gambling space. Used to display jackpot related stuff, winners, current jackpots, promotions, etc. It is deployed to every betting shop (around 600 of them). It also interacts with central server and gambling machines.

I started with swing then shortly thereafter switched to JavaFX and it was a joy to use it for this usecase. Really easy to make what we needed in small amount of code and it is performing well and is really stable (runs 24h/7 without problems)

Re:Show HN: Hacker News desktop application in Kotlin/Swing by agibsonccc on Sunday October 08, 2017 @12:17AM (#15426959)
Disclosure: I am friends with the founder.

Gluon is taking a pretty neat approach with javafx (think reactive native with javafx):

http://gluonhq.com/

I haven't browsed their repos but if you were to look for anyone promoting jfx it would be these guys.

Re:Show HN: Hacker News desktop application in Kotlin/Swing by kiwee on Sunday October 08, 2017 @12:21AM (#15426962)
I actually did with my company and anyway it was a bad decision. JavaFX and swing customization is really not easy and not well documented. JavaFX uses custom XML which make no sense to be honest when you want to do nice design. And it requires custom CSS too.

Additionally, their design are bad(I mean their Java API).

We spend a whole year making an app with it, at the end we decided move away from it, like the rest of the java community if fact that do not really support desktop applications anymore.

Re:Show HN: Hacker News desktop application in Kotlin/Swing by TXV on Sunday October 08, 2017 @08:04AM (#15427898)
> JavaFX uses custom XML which make no sense to be honest when you want to do nice design.

I don't see why the custom XML should be a problem. Definitely you are not supposed to edit the .fxml files by hand, especially when you have apps like Scene Builder that allow you to design everything from a GUI.

> And it requires custom CSS too.

That's true only for a few JavaFX-specific properties. The CSS syntax doesn't change very much. Also, it's not a surprising feature: QT, the C++ GUI framework, also uses custom CSS.

Re:Show HN: Hacker News desktop application in Kotlin/Swing by AlphaSite on Sunday October 08, 2017 @01:56AM (#15427138)
FX1 or FX2?