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

How to set the title of dialog or subwindow? #79

Open
Ryanznoco opened this issue Sep 1, 2018 · 1 comment
Open

How to set the title of dialog or subwindow? #79

Ryanznoco opened this issue Sep 1, 2018 · 1 comment

Comments

@Ryanznoco
Copy link

I'm using AbstractJavaFxApplicationSupport.showView()

@octaviospain
Copy link
Contributor

octaviospain commented Sep 23, 2018

I guess you are not using the last version of the project, if you use version 2.1.7 you call the showView method from a class that extends from AbstractFxmlView, and you can set the title of the window in the parameters of the @FXMLView annotattion, as shown in this sample:

@FXMLView (value = "SampleView.fxml", title = "Sample title!", stageStyle = "DECORATED")
public class SampleView extends AbstractFxmlView {

    public void doSomeViewAction() {

    }
}

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