mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 05:50:53 +03:00
TextComponents: selectAllOnFocusPolicy related changes:
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
- No longer select all text if selection (or caret position) was changed by application and `selectAllOnFocusPolicy` is `once` (the default). (issue #983) - FormattedTextField and Spinner: `selectAllOnFocusPolicy = once` behaves now as `always` (was `never` before), which means that all text is selected when component gains focus. This is because of special behavior of `JFormattedTextField` that did not allow implementation of `once`. - Client property `JTextField.selectAllOnFocusPolicy` now also works on (editable) `JComboBox` and on `JSpinner`. - Added client property `JTextField.selectAllOnMouseClick` to override UI property `TextComponent.selectAllOnMouseClick`. (issue #961) - For `selectAllOnMouseClick = true`, clicking with the mouse into the text field, to focus it, now always selects all text, even if `selectAllOnFocusPolicy` is `once`.
This commit is contained in:
15
CHANGELOG.md
15
CHANGELOG.md
@@ -70,6 +70,21 @@ FlatLaf Change Log
|
||||
application where multiple class loaders are involved. E.g. in Eclipse plugin
|
||||
or in LibreOffice extension. (issues #955 and #851)
|
||||
- HTML: Fixed rendering of `<hr noshade>` in dark themes. (issue #932)
|
||||
- TextComponents: `selectAllOnFocusPolicy` related changes:
|
||||
- No longer select all text if selection (or caret position) was changed by
|
||||
application and `selectAllOnFocusPolicy` is `once` (the default). (issue
|
||||
#983)
|
||||
- FormattedTextField and Spinner: `selectAllOnFocusPolicy = once` behaves now
|
||||
as `always` (was `never` before), which means that all text is selected when
|
||||
component gains focus. This is because of special behavior of
|
||||
`JFormattedTextField` that did not allow implementation of `once`.
|
||||
- Client property `JTextField.selectAllOnFocusPolicy` now also works on
|
||||
(editable) `JComboBox` and on `JSpinner`.
|
||||
- Added client property `JTextField.selectAllOnMouseClick` to override UI
|
||||
property `TextComponent.selectAllOnMouseClick`. (issue #961)
|
||||
- For `selectAllOnMouseClick = true`, clicking with the mouse into the text
|
||||
field, to focus it, now always selects all text, even if
|
||||
`selectAllOnFocusPolicy` is `once`.
|
||||
|
||||
#### Incompatibilities
|
||||
|
||||
|
||||
Reference in New Issue
Block a user