How To GUI Form Gradient Background
Answered
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.
Please sign in to leave a comment.
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.