I’m trying to create a button, which, when clicking, opens another screen.
However, when opening the second screen it keeps the first.
I would like to know how to close the first screen and the second to open when clicking the button.
Button event:
Home screen:
close() the first window before calling the other window does not resolve?
– Germano Buss Niehues
gives an error when I try to use this.close(); http://prntscr.com/mnynrv
– Cxrse