I have a script to run to select the first tab on a tab strip (if a tab exists). I added this script to the property change event of a dropdown that provides input to the dataset of the tabs.
When a dataset changes, it recreates the tab datast.
The problem is, the firstTab function runs too fast and it looks at the old tab dataset.
So I added an invokeLater function so that it runs after the tabs have been recreated. Works great.
My question is, what time frame can I count on for it to work but not have to “wait”. at 250ms it works fine. 250ms works fine for me because I will always be on a local host. However, if this was on deployed system on a network, would that still be enough?
I will likely do away with it at some point, but for now it works.