Skip to content

Instantly share code, notes, and snippets.

@KingC100
Created December 29, 2013 09:48
Show Gist options
  • Save KingC100/8168953 to your computer and use it in GitHub Desktop.
Save KingC100/8168953 to your computer and use it in GitHub Desktop.
@Override
public void initialize(URL url, ResourceBundle rb) {
/***
* アイコンの自動更新
*/
txb_Own_1.textProperty().addListener(new ChangeListener<String>() {
@Override
public void changed(ObservableValue<? extends String> observableValue, String s, String s2) {
Image img = new Image((getClass().getResource(rc.GetPath(txb_Own_1.getText()))).toString());
img_Own_1.setImage(img);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment