Well, what I want to do is that when I click on a certain button, it sends me to another window, well that's what it does, what happens is that I want that window to measure more than the main window (re-size its size) ).
Method that sends me to the screen that I want to resize
public void Ayuda() throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("../Vista/Login/Ayuda.fxml"));
Pane cmdPane = (Pane) fxmlLoader.load();
cmdPane.maxHeight(1000);
cmdPane.maxWidth(900);
try {
content.getChildren().clear();
content.getChildren().add(cmdPane);
} catch (Exception e) {
e.printStackTrace();
}
Initial class that loads the login
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
try {
Parent root = FXMLLoader.load(getClass().getResource("../Vista/Login/Login.fxml"));
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.show();
primaryStage.setMinHeight(502);
primaryStage.setMinWidth(610);
primaryStage.setMaxWidth(610);
primaryStage.setMaxHeight(502);
} catch(Exception e) {
e.printStackTrace();
}
}
So the screen that should be made bigger appears
Note: There should be space between the final buttons and the edge of the window