Hacker News new | past | comments | ask | show | jobs | submit login

What's your beef with JavaFX? I've been using it recently and it's a surprisingly well designed and nice UI framework. Parts of it are kind of immature and there are occasional surprising holes in its functionality, but that's because the current generation (after dropping the scripting language) is only a couple of versions old.



Mainly FXML (I hate XAML as well) but it's better than Swing.


How would you prefer to define UI layouts? Some other DSL? A binary format?


Another DSL. Structural DSL like this:

   form {
      input {
         name = "bob"
         label = "Bob"
      }
      button {
          action = #{bean.submit}
      }
   }
I've actually wrote a C code generator DSL over the top of Win32 many years ago that did this so the financial app I was working on so we didn't have to write millions of dialogs in win32 loops.


KotlinFX defines something a bit like this.

That said, I found FXML + IntelliJ to be quite painless. The closing tags are verbose when you have small toy examples but in big files they help orient you by reminding you what the end of a block is. And I mostly use Scene Builder anyway.


You might already be familiar with it, but this looks a lot like QML.


I wasn't actually - never used Qt (been stuck in win32 and Wx). Thanks for pointing it out :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: