Skip to content

Browser cursor is overridden by JSwing cursor after one of the swing component is repainted/revalidated #527

@nebsar

Description

@nebsar

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:

  1. Add the browser UI component to JFrame
  2. Add another JSwing component to JFrame (i.e. a JToolbar at the top)
  3. Set the browser cursor style to, for example, hand grab, with CSS or JS code
  4. Repaint and revalidate the JToolbar or one of the button inside the JToolbar.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions