I want to trigger the Window close action on a sub window in my application. For some reason though the window variable doesn’t seem to support that action… Meaning the IDE doesn’t show close() as a method option for the Window.
Eg.
Window windowObject = new Window();
windowObject.close();
→ Is displayed as faulty syntax.
I’ve used it in classes extending the Window class and there I can request the close() action.
Does anyone have any idea what I’m doing wring…? Are there contexts where the Window.close() action can’t be requested…?