AWT / Swing transferFocus equivalent in JavaFX

In JavaFX from node A, is it possible to shift focus to the next custom node, node B?

+4
source share
1 answer

You can use the Node impl_traverse method to focus on the following custom Node:

A.impl_traverse(Direction.NEXT) 

or in JavaFX 8:

 new KeyboardShortcutsHandler().traverse(A, Direction.NEXT) 
+1
source

Source: https://habr.com/ru/post/1492355/


All Articles