kirill-grouchnikov / radiance

Building modern, elegant and fast Swing applications
BSD 3-Clause "New" or "Revised" License
807 stars 89 forks source link

[Component] Ribbon task content (ribbon bands) not showing after a certain sequence of user interactions on Windows #472

Closed MichaelWDenney closed 5 months ago

MichaelWDenney commented 5 months ago

Version of Radiance (latest release is 7.5-SNAPSHOT)

7.5-SNAPSHOT

Sub-project (Common, Animation, Theming, Component, ...)

Ribbon

Version of Java (current minimum is 9)

21.0.1

Version of OS

Windows 11

The issue you're experiencing (expected vs actual, screenshot, stack trace etc)

In the demo, I added the following to org.pushingpixels.radiance.demo.component.ribbon.BasicCheckRibbon.configureTaskBar():

    ribbon.addTaskbarCommand(Command.builder()
          .setIconFactory(Edit_clear.factory())
          .setAction(commandActionEvent -> ribbon.setMinimized(!ribbon.isMinimized()))
          .build().project());

In general, it works as expected. However, every now and then the ribbon tasks all become blank:

image

The definite cause is not clear but it happens after some combination of repeatedly minimizing/restoring the ribbon and repeatedly clicking the various ribbon tab toggle buttons. It can sometimes take a while to get the issue to occur. When it does occur, the only way I've found to restore the ribbon tasks is to change the skin.

kirill-grouchnikov commented 5 months ago

Not able to reproduce this so far on macOS. Will try on a Windows box.

kirill-grouchnikov commented 5 months ago

Reproducible 100% on Windows but not on macOS:

End result is that the ribbon is maximized, but does not show any task content