Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Events to Controller on multiple windows #40

Open
incluedu opened this issue Oct 22, 2017 · 0 comments
Open

Add Events to Controller on multiple windows #40

incluedu opened this issue Oct 22, 2017 · 0 comments

Comments

@incluedu
Copy link

Hi

First I want to thank you for the great Project.

I am not sure this is the correct place for this question, when not sorry about the circumstances.

I use then new showView method (implement with 1.3.30) and call the new window like this.

App.showView(SettingsView.class, Modality.WINDOW_MODAL);

This works fine but i need to add some window events to the stage because everytime when i show the window i have to update my data. I try the to implement the flowing code in the controller but i have no idea where i can call this method.

`
public void addEvents() {
Window window = vbox.getScene().getWindow();

    window.setOnShowing(this::showingWindowAction);
    window.setOnShown(this::shownWindowAction);
}

`

Thank you
Patric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant