使用nimbus对Java swing中的按钮进行3D效果 [英] 3D Effect to buttons in java swing using nimbus
问题描述
我已经使用Nimbus为挥杆中的按钮创建了圆角,请参见此处: 使用Nimbus为JButton给出圆角
I have used Nimbus to create rounded corners for buttons in swing referring here: Use Nimbus to give rounded corners for JButton
我现在想对按钮进行3D外观.我应该如何使用nimbus进行处理? 我经历过雨云,却无法找到合适的信息
I now want to give a 3d look to the buttons. How should I go about this using nimbus? i had gone through nimbus but coudnt find appropriate info
注意:我已添加图像,其中button1显示了我已使用的图像: generateButton.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
note: I have added image where button1 shows that I have used: generateButton.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
第二,具有灵气效果
推荐答案
这不仅仅是建议,还是答案.
This is more of a suggestion than an answer.
从查看您之前的问题来看,此按钮似乎对您来说是个问题.似乎您最初对按钮的问题根本不包括使用Nimbus
,而是更多关于如何获得按钮外观和功能的问题.
From looking at your previous questions it seems this button has been a problem for you. It seems your initial question regarding the button didn't include using Nimbus
at all but was more just how to get the button look and functionality.
我可能建议您不要尝试弄乱外观,而应该选择自己喜欢的外观.以下所有内容均可在 sourceforge
I might suggest instead of trying to mess with the look and feel, maybe just pick a look and feel that is to your liking. All of the one below can be found at sourceforge
SeaGlass LAF
液体LAF
JTattoo Acryl LAF
JTattoo石墨LAF
JTatto McWin LAF
JTatto Texture LAF
这篇关于使用nimbus对Java swing中的按钮进行3D效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!