Describe the bug
The browser cursor is overridden by swing cursor after one of the swing components in the swing UI repainted/revalidated.
To Reproduce
Steps to reproduce the behavior:
- Add the browser UI component to JFrame
- Add another JSwing component to JFrame (i.e. a JToolbar at the top)
- Set the browser cursor style to, for example, hand grab, with CSS or JS code
- Repaint and revalidate the JToolbar or one of the button inside the JToolbar.
- See that the browser cursor is overridden by swing UI.
Expected behavior
The cursor on the browserUI should show the browser's cursor, after swing component repaint/revalidate
Screenshots
Add this piece of code inside tests/detailed/ui/ControlPanel.java
Timer timer = new Timer(1000, e -> {
repaint();
revalidate();
});
timer.start();
Versions (please complete the following information):
- OS: Windows 10, Windows 11
- Java Version: OpenJDK 21
- JCEF Version: jcef-2caef5a
- CEF Version: cef-141.0.10+g1d65b0d+chromium-141.0.7390.123
Additional context
Does the problem reproduce with the JCEF simple or detailed sample application at the same version?
Both
Describe the bug
The browser cursor is overridden by swing cursor after one of the swing components in the swing UI repainted/revalidated.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The cursor on the browserUI should show the browser's cursor, after swing component repaint/revalidate
Screenshots
Add this piece of code inside tests/detailed/ui/ControlPanel.java
Versions (please complete the following information):
Additional context
Does the problem reproduce with the JCEF simple or detailed sample application at the same version?
Both