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

FXMLView as custom control for Scene Builder #76

Open
liebehentze opened this issue May 15, 2017 · 1 comment
Open

FXMLView as custom control for Scene Builder #76

liebehentze opened this issue May 15, 2017 · 1 comment

Comments

@liebehentze
Copy link

Is it still wip? See #29. Would make developing much faster.

@kravemir
Copy link

@liebehentze I've been struggling to get content shown of my FXMLView based component, when it's included via FXML. I've found a solution (and, after then I have actually discovered this issue and #29) to just add view in constructor:

import com.airhacks.afterburner.views.FXMLView;

public class MyComponentView extends FXMLView {

    public MyComponentView() {
        this.getChildren().setAll(getView());
    }
}

It's somewhat simpler than one suggested in #29.

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

2 participants