5 ms·
Mainly FXML (I hate XAML as well) but it's better than Swing.
by nick_riviera 12y ago
Mainly FXML (I hate XAML as well) but it's better than Swing.
- mike_hearn 12y agoHow would you prefer to define UI layouts? Some other DSL? A binary format?
- nick_riviera 12y agoAnother 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.
- mike_hearn 12y agoKotlinFX 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.
- kluge 12y agoYou might already be familiar with it, but this looks a lot like QML.
- nick_riviera 12y agoI wasn't actually - never used Qt (been stuck in win32 and Wx). Thanks for pointing it out :)