JFormDesigner / FlatLaf

FlatLaf - Swing Look and Feel (with Darcula/IntelliJ themes support)
https://www.formdev.com/flatlaf/
Apache License 2.0
3.34k stars 266 forks source link

[FlatLaf 3.5.1] Repaint issue on Windows 11 #887

Open IAmBaguette opened 1 week ago

IAmBaguette commented 1 week ago

Issue Description

I'm experiencing a repaint issue with FlatLaf 3.5.1 on Windows 11. My setup includes an AMD graphics card (RX 6700 XT) with three monitors (1920 x 1080, 120Hz). The issue occurs when using a JFrame with a JMenuBar. Notably, the same project does not exhibit the issue on Windows 10 with an Intel integrated graphics card.

Details:

https://github.com/user-attachments/assets/9c2bcdc7-94ac-4856-bcb1-090b2b971867

Observations:

Steps to reproduce

  1. Run the application.
  2. Use the menu bar.

https://github.com/user-attachments/assets/b0ed217e-24fb-4a79-82fd-48a042c5da4a

Minimal reproduction project (MRP)

flatlaf-windows11.zip

nevemlaci commented 6 days ago

This is also a problem with JComboBoxes withing JTables, not just MenuBars. image

2 monitors, 144hz both, RTX 3050 GPU, Windows 11 Education 23H2

IAmBaguette commented 4 days ago

I'm seeing the same problem with a JComboBox in the FlatLaf demo app.

https://github.com/user-attachments/assets/85841646-1b54-45ce-ae21-915554a6ffe1

However, I am unable to replicate the issue with JComboBoxes within a JTable when using the demo app. @nevemlaci Are you able to reproduce the same issue using the demo app for the JComboBoxes within a JTable?

nevemlaci commented 4 days ago

I'd love to but the demo app is impossible to navigate for me due to the repaint issues, 2 clicks and the whole thing just breaks down. I'm not sure where to look for a JTable + JComboBox in the demo app either, I've never used it.

KlemenDEV commented 2 days ago

Some of the users of our software which uses FlatLAF 3.5.1 are also reporting this issue