You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3d3b555 partially implements a solution for text boxes in a JSpinner to be selected on focus. It works nicely for tabbing, but sometimes on click selection happens but is then lost.
Presumably this is a race condition with queuing the text box selection and some sort of validation of the JSpinner. But it's not clear what.
There are many SO posts discussing this but none seemed perfect resolutions.
Secondary goals:
Understand why we would want to select text on focus lost
Test on OS's besides mac
Do NOT rely on sleep statements to queue selection after any JSpinner validation has passed
The text was updated successfully, but these errors were encountered:
This (mostly) ensures the text of a JSpinner is selected on focus. On OSX it
seems to always work with tabs, and mostly work with mouse clicking. However
there does seem to be a race condition where the text selection can be lost,
presumably from the JSPinner firing a validation event after the text field's
selection has been processed.
See #12 for future work.
This (mostly) ensures the text of a JSpinner is selected on focus. On OSX it
seems to always work with tabs, and mostly work with mouse clicking. However
there does seem to be a race condition where the text selection can be lost,
presumably from the JSPinner firing a validation event after the text field's
selection has been processed.
See #12 for future work.
3d3b555 partially implements a solution for text boxes in a
JSpinner
to be selected on focus. It works nicely for tabbing, but sometimes on click selection happens but is then lost.Presumably this is a race condition with queuing the text box selection and some sort of validation of the
JSpinner
. But it's not clear what.There are many SO posts discussing this but none seemed perfect resolutions.
Secondary goals:
sleep
statements to queue selection after anyJSpinner
validation has passedThe text was updated successfully, but these errors were encountered: