Skip to content

Deprecate background parameter in SwingPanel#3024

Merged
Alexander Maryanovsky (m-sasha) merged 4 commits into
jb-mainfrom
m-sasha/deprecate-SwingPanel-background
May 4, 2026
Merged

Deprecate background parameter in SwingPanel#3024
Alexander Maryanovsky (m-sasha) merged 4 commits into
jb-mainfrom
m-sasha/deprecate-SwingPanel-background

Conversation

@m-sasha

@m-sasha Alexander Maryanovsky (m-sasha) commented May 1, 2026

Copy link
Copy Markdown

Deprecate and later remove.

Fixes https://youtrack.jetbrains.com/issue/CMP-9099

Testing

Tested that setting the background manually works. For some components, isOpaque = true is also needed to have the background drawn.

Release Notes

Migration Notes - Desktop

  • The background parameter of SwingPanel has been deprecated. Instead set the background manually in the factory method. There's a new (experimental) Color.toAwtColor() function to convert Compose color objects to AWT ones.

@m-sasha Alexander Maryanovsky (m-sasha) merged commit a2891f7 into jb-main May 4, 2026
22 checks passed
@m-sasha Alexander Maryanovsky (m-sasha) deleted the m-sasha/deprecate-SwingPanel-background branch May 4, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants