OK, so I've narrowed the issue down to my action event handler. It's the strangest thing... If I place a breakpoint in the function, it is only hit if I remove other lines later in the function. Check out the code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| content = Button { text: "Select" action: function() { if (this.listener != null) { var ch: CharacterEntry = listView.selectedItem as CharacterEntry; if (ch != null) { listener.characterSelected(ch.id); } } } } |
I'm worried that this is a compiler error. That would be disappointing because I've been excited about JavaFX ever since I heard about it a couple years ago. I've tried porting a project to it at 1.0, 1.2 and now 1.3 and each time encountered some sort of issue like this that let me know that it's just not ready yet.