nimbus java,使用nimbus对Java swing中的按钮进行3D效果

本文提供了一种建议,而非直接答案。如果你想要在Swing中使用Nimbus为按钮创建3D外观,作者建议尝试选择一个符合个人喜好的Look and Feel。文章列举了一些可以在SourceForge上找到的不同Look and Feel库,如SeaGlass,Liquid LAF,JTattoo等,供你选择以达到期望的3D效果。
摘要由CSDN通过智能技术生成

lkQ94.pngI have used Nimbus to create rounded corners for buttons in swing referring here:

Use Nimbus to give rounded corners for JButton

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

note: I have added image where button1 shows that I have used:

generateButton.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));

and second with nimbus effect

解决方案

This is more of a suggestion than an answer.

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.

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

BgYOo.png

Liquid LAF

5ihw6.png

JTattoo library has assorted LAFs you can choose from

JTattoo Acryl LAF

LsZVr.png

JTattoo Graphite LAF

eopV7.png

JTatto McWin LAF

Wl54h.png

JTatto Texture LAF

5YgSy.png

Happy Searching!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值