This demo shows how to integrate yFiles for JavaFX in a Swing application.
- A toolbar that provides Swing buttons to change the zoom level of the
GraphControl
that is a JavaFX control as well as Swing buttons for undo/redo functionality. - A right click on a node shown in the
GraphControl
opens a Swing context menu and allows the user to delete the clicked node from theGraphControl
. - On the left side a Swing palette offers nodes with different styles that can be dragged into the
GraphControl
.