I have an abstract class which I use for opening other windows. Now I want this class to be able to close the window I invoke it's methods from. Is it even possible to do?
Here's a small example, so you would get easier acknowledged with what i mean:
Window.java
public abstract class Window{
public static void closeWindow(){ ... }
}
MainController.java
public class MainController extends Window implements Initializable {
@Override
public void initializable (URL blablabla, ResourceBundle blablabla){
closeWindow();
}
}
Aucun commentaire:
Enregistrer un commentaire