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

Fxml Loader Class not found #1335

Open
GnuaAruht opened this issue Jul 1, 2021 · 1 comment
Open

Fxml Loader Class not found #1335

GnuaAruht opened this issue Jul 1, 2021 · 1 comment

Comments

@GnuaAruht
Copy link

When I use fxml for ui resources, fxml loader class is not found.

My View class
class CounterView : View() { override val root: BorderPane by fxml() }
Fxml file is located under resources directory
`

<center>
    <VBox alignment="CENTER" spacing="10">
        <Label text="0">
            <font>
                <Font size="20"/>
            </font>
        </Label>
        <Button text="Click to increment" />
    </VBox>
</center>

`

@SchweinchenFuntik
Copy link
Contributor

SchweinchenFuntik commented Jul 1, 2021

provide the FXMl header and stacktrace. Also provide the paths where your FXML-file is located.

Fxml file is located under resources directory

at the root of the resource? then it is not a valid file path.

View and FXML-file must be in the same package or you must specify the path manually. Documentation:
https://edvin.gitbooks.io/tornadofx-guide/content/part1/10_FXML.html

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