We prefer to not just provide answers, but to help you find your own answers. So:
- can you draw the boxes with text inside them?
- can you draw lines?
As soon as you answer yes to both you will basically have your problem solved.
A few hints:
- the box can be a Rectangle with a Label or Text in front of it.
- the line can be done using the javafx.scene.shape package.