i'm new to javafx and i want to load an fxml file to Pane
the problem is when i click to the pageTwo button an exception message says that java.lang.ClassNotFoundException: PageTwoController
here is the code
@FXML
private void pageTwoAction(ActionEvent event) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("pageTwo.fxml"));
Pane displayArea = (Pane) fxmlLoader.load();
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
PageTwoControllerin classpath ??