Part 1 of a series of posts on how to develop JavaFX custom controls that demonstrate using drag-and-drop to create and move objects. The result is a simple application that mimics node-style editors found in major software like Blender and Unreal Development Kit (UDK).
Tag Archives: JavaSE8
To this point, we’ve set up a skeleton JavaFX application and separated the resources from the code. We’ve also build a few classes and two FXML documents with template code to make them functional. Finally, we created one of the custom classes (RootLayout) and added it to the Stage provided by the default application. But […]
To this point, we’ve built a skeleton application with two custom controls: RootLayout, which consists of a hierarchy of containers that define the main application view, and DragIcon, which is a simple AnchorPane representing a draggable object we can drag and drop from the left to the right side of our application. We also added […]
To this point, we’ve created our skeleton application with a SplitPane view populated with a vertical list of colored icons at left. These icons are draggable from the left-hand pane to the right-hand pane, but that’s it. In this post, we’ll complete the first drag-and-drop function as well as implement a custom drag-and-drop data structure […]
This is it. Last post for this series. We’re going to finish what we’ve started, connecting two nodes with a CubicCurve. It’s a bit more involved than it seems, but it’s not too bad. Plus, I’ve thrown in a little bonus with the complete application code. You can download it here. So let’s go. Connecting […]