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
The JTextField cell editor normally won't get the focused event if you type directly on a cell (without a mouse click into the cell editor). So the 'TextComponent.selectAllOnFocusPolicy' won't apply to cell editors. But when you enable the 'surrendersFocusOnKeystroke' on the JTable. The cell editor will get the focus, then the text you typed into the cell directly will be selected (if 'TextComponent.selectAllOnFocusPolicy': once or always). If you set the policy to 'once', it only applies to the first cell editor in the table. It makes people feel strange.
So is it possible to disable this policy for cell editors? Especially when 'surrendersFocusOnKeystroke' is enabled.
Thanks,
Tristan
The text was updated successfully, but these errors were encountered:
…able.surrendersFocusOnKeystroke` is `true`) and `TextComponent.selectAllOnFocusPolicy` is `once` (the default) or `always` (issue #395)
(cherry picked from commit f8b9f4c)
Hi,
The JTextField cell editor normally won't get the focused event if you type directly on a cell (without a mouse click into the cell editor). So the 'TextComponent.selectAllOnFocusPolicy' won't apply to cell editors. But when you enable the 'surrendersFocusOnKeystroke' on the JTable. The cell editor will get the focus, then the text you typed into the cell directly will be selected (if 'TextComponent.selectAllOnFocusPolicy': once or always). If you set the policy to 'once', it only applies to the first cell editor in the table. It makes people feel strange.
So is it possible to disable this policy for cell editors? Especially when 'surrendersFocusOnKeystroke' is enabled.
Thanks,
Tristan
The text was updated successfully, but these errors were encountered: