Java Fx..........(Focus On a Particular Component)
For this write code in your initialize Block of Scene- public void initialize(URL arg0, ResourceBundle arg1) {
- Platform.runLater(new Runnable() {
- @Override
- public void run() {
- textBox.requestFocus();
- }
- });
- }
It place Focus on that particular (textBox) Component on Scene Load
No comments:
Post a Comment