0
I created a project from scratch, was without any folder and opened the window perfectly, but when I put inside 7 folders and then started not to load. Does anyone know how I would point? I’m using Scene Builder as well.
The tree is like this:
projeto
└───src
└───br
└───com
└───mask
└───tarefas
└───login
└───LoginSystem (arquivo que tem que apontar para o FXML)
|
└───layout
└───LoginFXML (ArquivoFXML que tem que ser apontado)
The class that points is this:
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class LoginSystem extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("LoginFXML.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
In which folder the file
LoginFXML.fxml
is?– Allan Juan
This in the last folder,layout, already the System that calls it is a folder before, login
– Arthur