나는 현재 우리가 다음 fxml에 본 fxml 장면에서 화면을 천이 다시 사용할 수있는 일반적인 기능이 있습니까javafx에서 뒤로 버튼 기능을 만들어야합니까?
Parent parent = FXMLLoader.load(getClass().getResource("AolRun.fxml"));
Stage stage = new Stage();
stage.initStyle(StageStyle.UTILITY);
stage = (Stage) run.getScene().getWindow();
Scene scene = new Scene(parent);
stage.setScene(scene);
scene.getStylesheets().add("/css/Style.css");
stage.setTitle("Output");
stage.setResizable(false);
stage.show();
자바 FX 버튼을 fxml이 코드를 바인딩이 같은 것을 사용하고 있습니다.
모든 fxml에 대해 별도의 장면이 있습니다.
하나의 장면을 사용하고 장면의 부모 레이아웃을 변경하는 것이 좋습니다. – GOXR3PLUS
이미 내 응용 프로그램이 이미 구축되어 있습니다. –