This content has been marked as final. Show 3 replies
I'm not sure to understand your question. But I suppose you want to change the focus order on your elements?
So when you press Tab, your cursor/focus moves to the next element.
This order is set by the way you put your elements in the scene builder from top to bottom.
So in your Hierarchy menu, you will see something like this:
GridPane .. x ..
-- TextField (This element is the first one who retrieves focus)
-- TextField (When press Tab, this TextField get focus)
-- TextField (When press Tab again, this TextField get the focus)
If you want to do it with code, you can use the function setFocus().
Thanks for the reply
U understand right
i want to build a data entry form where in some fields data entry is required and in some fields are computed.
So i want that cursore goes only in those fields wehre data entry is required.
Call setFocusTraversable(false) on the fields whose values are computed.