Java
넷빈즈에서 씬빌더 화면전환 ....
 public void changeSceneButtonCliked(ActionEvent event) throws IOException
    {
        Parent m_Main_view_parent = FXMLLoader.load(getClass().getResource("m_Main_view.fxml"));
        Scene m_Main_view_scene = new Scene(m_Main_view_parent);
        Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
        window.setScene(m_Main_view_scene);
        window.show(); 
    }

/* --------------------1 --------------------------*/ 

   public void changeSceneButtonCliked(ActionEvent event) throws IOException
    {
        Parent m_Movie_info_regis_parent = FXMLLoader.load(getClass().getResource("m_Main_info_regis.fxml"));
        Scene m_Movie_info_regis_scene = new Scene(m_Movie_info_regis_parent);
        Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
        window.setScene(m_Movie_info_regis_scene);
        window.show(); 
    }

1번으로 적용하니 화면전환이 됐는데 그대로 가져다가 getResource 값만 변환 하려는 창으로 바꿨는데 

이렇게 하니 적용이 안되네요... 

어떤걸 또 변경해야하나요..? 

댓글 1