问题
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