开发者

NetBeans Swing GUI Builder: Background Gradient

I would like to put in a background gradient using the NetBeans GUI Builder. I know I can layer components, but I can't seem to find out how to put in an image that fills the screen, and really don't know if layered components is even the right way. Even then, the only GUI-builder way I know to put in an image is to add an icon to a label.

I would prefer not t开发者_StackOverflow社区o write the code manually (which I am fully capable of). If the GUI builder supports this functionality, I would much prefer to stick to it.

I am not much familiar with swing, especially look and feel. Only the layout section. I am familiar with HTML and Android layouts.


but I can't seem to find out how to put in an image that fills the screen,

You need to do custom painting. Background Panel does this for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜