Work/JAVA2018. 6. 22. 10:29

만약 JavaFX의 TextField가 업데이트가 안 되면, 임시조치로. TextField 하나 생성하고.

두 개를 바인딩 한 다음 새로 만든 TextField에 값을 쓰면 자동으로 연동된다. 


@FXML private TextField txt_Maker;  // <- what you want to update (destination)


TextField make_Name = new TextField(); // 1. make a new TextField (interface)


public void initialize(URL location, ResourceBundle resources) {


txt_Maker.textProperty().bindBidirectional(make_Name.textProperty()); // 2. bind two textfield


}


private void handle_btn_Load(ActionEvent event) {


make_Name.setText("TEST"); // 3. Write the text to interface textfield. 


}



Posted by Astas
스크랩 북/시사2015. 1. 22. 16:56


세줄요약 

1. 추월차로에 있는데 뒤에서 나보다 빠른놈이 접근하고 있으면 무조건 비켜줘야 함.

2. 그넘이 과속이고 자시고는 상관 없음.

3. 추월차로 정속주행은 진로양보의무 위반임. 


한줄요약 : 하지 마라.

Posted by Astas