I need help figouring out simply how to display a text in my program so that it can display \"Stop\" in the middle of my polygon shape I\'ve created. What I\'m trying to do is c
Just change new Pane() to new StackPane() and add your label to the pane's child list like you do your Polygon.
new Pane()
new StackPane()
StackPane is a layout manager that allows you to layer items on top of each other (by default centering the layered items).