Saturday, 30 March 2013

Java Fx..........(Focus On a Particular Component)

  1. Java FX For this write code in your initialize Block of Scene
  2. public void initialize(URL arg0, ResourceBundle arg1) {
  3.         Platform.runLater(new Runnable() {
  4.             @Override
  5.             public void run() {
  6.             textBox.requestFocus();  
  7.             }
  8.         });
  9.     }

It place Focus on that particular (textBox) Component on Scene Load

No comments:

Post a Comment