your solution implies that the number of tabs is k...
# tornadofx
b
your solution implies that the number of tabs is known no?