Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.