10-27-2008 11:51 AM - edited 10-27-2008 11:51 AM
Hi! Is there a way to set the button font color? Sorry about the nooby question. Thanks!
10-27-2008 12:10 PM
10-27-2008 12:49 PM
To extend the ButtonField class:
class MyButtonField extends ButtonField ...yada yada
Read the API docs for ButtonField.paint()
Override the default implementation of paint like so:
protected void paint(Graphics g)
int color = 0x000000; // (some rgb value, or use the Color interface definitions)
...or something along those lines!
One warning: Buttons are theme-controlled so you may run into problems with some themes injecting text or background colors that conflict with the text color that you select.
Probably better to simply create your own buttonfield class.