NetBeans Swing GUI 生成器:背景渐变
我想使用 NetBeans GUI Builder 添加背景渐变。我知道我可以对组件进行分层,但我似乎不知道如何放入填充屏幕的图像,而且真的不知道分层组件是否是正确的方法。即便如此,我所知道的放置图像的唯一 GUI 构建器方法就是向标签添加图标。
我不想手动编写代码(我完全有能力)。如果 GUI 构建器支持此功能,我更愿意坚持使用它。
我对 swing 不太熟悉,尤其是外观和感觉。仅布局部分。我熟悉 HTML 和 Android 布局。
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 to 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要进行自定义绘画。 后台面板可以为您完成此操作。
You need to do custom painting. Background Panel does this for you.