Z order in runtime

Yes, you would need to refresh the window, I forgot to add that in to the script. Calling a repaint() on the container where the components are located should do the trick. Add this to the end of your script:

cont.repaint()
1 Like