简体   繁体   中英

3D Effect to buttons in java swing using nimbus

在此输入图像描述 I 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

在此输入图像描述

Liquid LAF

在此输入图像描述

JTattoo library has assorted LAFs you can choose from

JTattoo Acryl LAF

在此输入图像描述

JTattoo Graphite LAF

在此输入图像描述

JTatto McWin LAF

在此输入图像描述

JTatto Texture LAF

在此输入图像描述

Happy Searching!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM