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.

[713 byte] By [Badra] at [2007-10-3 9:54:04]
# 1
Cross Post: http://forum.java.sun.com/thread.jspa?threadID=786030&messageID=4467258#4467258
zadoka at 2007-7-15 5:11:46 > top of Java-index,Desktop,Core GUI APIs...