Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miurahr/java-repro-custom-laf-menu-focus
Reproducer of a custom LaF and menu focus issue
https://github.com/miurahr/java-repro-custom-laf-menu-focus
java lookandf openjdk swing
Last synced: 4 months ago
JSON representation
Reproducer of a custom LaF and menu focus issue
- Host: GitHub
- URL: https://github.com/miurahr/java-repro-custom-laf-menu-focus
- Owner: miurahr
- License: gpl-2.0
- Archived: true
- Created: 2021-11-06T07:20:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T04:16:32.000Z (about 3 years ago)
- Last Synced: 2024-09-26T01:43:21.993Z (4 months ago)
- Topics: java, lookandf, openjdk, swing
- Language: Java
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reproducer of a custom LaF and menu focus issue
This is a reproducer which give focus on a text field then call menu by
Alt/Key combination, failed assertion as a "wrong focus owner", that the focus does not move to
`JRootPane` from `JTextField`, when activate a custom LaF that utilizes `UIManager`'s `getDefaults`
mechanism and just wraps system's default LaF.`CustomThemeOfWrappingSystemLaf` class is the example of the minimum custom LaF that wrap system laf.
When comment-out `CustomThemeOfWrappingSystemLaf.installAndSet()` from a main method,
all the tests are passed as expected.## Conditions
- OS: Linux, macOS and Windows
- OpenJDK: 8, 11, 17## Project affected
- OmegaT [BUGS#1073](https://sourceforge.net/p/omegat/bugs/1073/)
## License
The codes and contents are licensed under GNU General Public License version 2,
or (at your option) any later versions.