You have to care it by yourself:
- first of all you can catch every kind of action that is used on the button to change the state (like in the code, where mouseIn is used to change a color)
- then you have to care about every single paint detail you need, for example for gradients you should point to class
GradientPaint
that is used to draw gradients..
By the way mind that you have to take care of various look-and-feels and that your solution will fit just one of these..
Jack
2009-06-17 14:08:29