Earlier quoted context omitted.
As the author of this—yep, I can agree with that. I'm generally baffled when I see folks complain about Electron's slowness—but that's probably 'cause I started out building Swing apps :)
Also the memory usage is killer.
Show HN: Hacker News desktop application in Kotlin/Swing
31–40 of 92 posts
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#32Re: Show HN: Hacker News desktop application in Kotlin/Swing
#33It don’t mean a thing...
"It Don't Mean a Thing (If It Ain't Got That Swing)" https://www.youtube.com/watch?v=qDQpZT3GhDg
:)
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#34Some suggestions: 1) don't start a new project in Swing when you could use JavaFX instead. Since you're using Kotlin, you'd also want to use TornadoFX, a nice DSL for JavaFX. 2) use Maven or Gradle (or hell, any build tool). Don't store artifacts in source control. I was really hoping someone who knew what they were doing was building this after the mini Electron debate earlier this week :/
Excuse a quick aside -- do you know of any good examples of real non-enterprisey apps using JavaFX? Java desktop apps seem almost universally awful, but it doesn't seem like it has to be that way. I'd love to see some counter examples (IntelliJ's IDEs are honourable exceptions, but they're a bit of a special case).
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#35Some suggestions: 1) don't start a new project in Swing when you could use JavaFX instead. Since you're using Kotlin, you'd also want to use TornadoFX, a nice DSL for JavaFX. 2) use Maven or Gradle (or hell, any build tool). Don't store artifacts in source control. I was really hoping someone who knew what they were doing was building this after the mini Electron debate earlier this week :/
Hey kevinherron—thanks for the feedback. I actually was aware I could build something nicer with JavaFX, but one of the main constraints on the project was that it satisfy my nostalgia for old Swing apps (particularly the 'Metal' Look and Feel), so I decided to go in that direction. As for building—I agree the current project structure is basically unforgivable :) However, I figured the chances of anyone seeing the p…
Now that you've got a build.system in place you won't have to waste time documenting or replying to comments about how to build it :)
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#36Other ways to read Hacker News | https://news.ycombinator.com/item?id=15310291 (Sep 2017, 181 comments)
Includes mention of alternate websites, mobile apps, and a pair of CLIs: haxor-news and hn-cli. I'm not sure but this might be the first desktop GUI app for HN I've heard of!
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#37The 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 use…
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#38Ask HN on Show HN: Why is Swing UI still so Ugly ? 2 Decades since it's introduction in 1997 ( I remember being forced to use it in a trading OMS application in 2002), Swing UI looks frozen in time, ugly as ever.
follow up question: why does swing use its own special snowflake design, when it could the OS's native design?
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#39Earlier quoted context omitted.
Definitely got that swing feeling to it :) Is there any way to customize the theme? I'd love something that's more clean and looks more modern.
The only way is to change the Look and Feel, and unfortunately I think 'Nimbus' (which I show in one of the screenshots) is the most modern looking of the built-in Look and Feels. There may be some decent 3rd party options though... Like whatever IntelliJ is using.
Re: Show HN: Hacker News desktop application in Kotlin/Swing
#40Earlier quoted context omitted.
The only way is to change the Look and Feel, and unfortunately I think 'Nimbus' (which I show in one of the screenshots) is the most modern looking of the built-in Look and Feels. There may be some decent 3rd party options though... Like whatever IntelliJ is using.
Not true, you can get the platform feel easily. I've seen swing do Windows XP through 7 easily. Never tried 10 yet.