3D color effects in JButton
Hi all,
I am trying to modify the background color of two JButton with 3D effects, I am using for this adjustGradient's methode but it affects all Buttons with the same color.
I want to associate for each Button its desired color without losing the 3D effects.
There is the code of adjustGradient methode:
public void adjustGradient(Color color) {
List list = new ArrayList();
list.add(new Float(0.3F));
list.add(new Float(0));
list.add(color);
list.add(Color.WHITE);
list.add(color.darker());
UIManager.put("Button.gradient", list);
}
Can you help me for this task with idea or example of source code.
Thanks in advance.

