Created
December 29, 2013 09:48
-
-
Save KingC100/8168953 to your computer and use it in GitHub Desktop.
JavaFX Text Change Event ref(http://stackoverflow.com/questions/17254210/javafx-text-change-event)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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