How To GUI Form Gradient Background
已回答
Hi, I am a beginner on the Intellij Idea GUI Form. And I don't know how to set a gradient background to the form. Can someone help me? Thanks.
请先登录再写评论。
You can't do it using UI Designer only.
But you can enable "Custom Create" property on a component and create panel with gradient manually in `createUIComponents()` method.
Ex: by overriding `protected void paintComponent(Graphics g)` and using `com.intellij.util.ui.UIUtil#getGradientPaint` there.
Smth like
It uses plain Swing rendering, so there are should be plenty of samples on the web.