3D Effect to buttons in java swing using nimbus

老子叫甜甜 提交于 2019-12-13 04:39:54

问题


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


回答1:


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!



来源:https://stackoverflow.com/questions/22163687/3d-effect-to-buttons-in-java-swing-using-nimbus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!