I have been playing with writing an application using Scala, with its API defined in ScalaFX, which wraps the powerful JavaFX library. For simple exercises, coding the UI by hand was enough. But for more complex forms, I began using the JavaFX Scene Builder tool. Fortunately, others have blazed this trail, and there are fairly stable ScalaFX and ScalaFXML libraries available. Using the Scene Builder tool, I laid out my form and included a ListBox to hold possible gender selections. The Scene Builder tool generated fxml code such as: <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="208.0" prefWidth="275.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <children> <Label layoutX="14.0" layoutY="30.0" text="Name" /> <Label layoutX="14.0" l...
Musings on Tests, Quality, Tools, Projects and more. By Steve Page