
As the title states, my book has finally been published. You can get it (and you know you want to) at a number of places:
I had fun and learned a lot while working on this. I hope you find it useful.
As the title states, my book has finally been published. You can get it (and you know you want to) at a number of places:
I had fun and learned a lot while working on this. I hope you find it useful.
I recently struggled trying to text in a JavaFX ListView to wrap inside the container like I asked it to, rather than extend (and disappear) past the boundaries of the container. After some discussion on Twitter and a bit of Googling, I found an answer that I thought I'd share here to, perhaps, save someone some time.
In a project I'm working on for my book, I need to share classes between two applications. One, an Android project, requires Java 8. The other, a desktop JavaFX application, needs to run under Java 9, complete with module support. The problem with this is that the Maven tooling isn't quite ready for Java 9, so it's not as simple as I would like. I have, however, found a solution that seems to work.
In my work on my book , I've spent quite a bit of time with JavaFX. In the chapter I just submitted, I wrote the application using the NetBeans RCP, which I think is a great piece of software. My only "complaint", I think, is more of a philosophical one more than a technical one, and even stating it that way is probably really over-selling it: for the most part, to use the RCP is to use Swing. Sure, you can use JavaFX in the application, but it seems you have to hold your mouth just right to get two-way data flow working. Possible, but it seems like a bit of work.
At any rate, while casting around The Tubes to track down advice on how to solve one problem or another, I ran across a couple of more modern application frameworks that look really promising, Drombler FX and the Dolphin Platform . Both look pretty slick, but the former seems to be backed by "only one guy" and might be a bit slow moving, while Dolphin is backed by Canoo and, more specifically, Dierk König .
Once I finish this book and have more time to play with shiny new things, I need to give both of these a spin.
I should probably note, though, that there's nothing really wrong with the NetBeans RCP in any real technical sense (beyond the 'no software is perfect' notion). I just like shiny things. I did, though, successfully create my RCP app and found the experience to be quite nice. If you need a desktop application, you should definitely check out the RCP.
For both my day job and a side project, I need want to generate and manage my REST APIs in a contract-first manner using Swagger. From looking at the docs, the answer seems to be Swagger Codegen, but I'm finding that it's not that simple.