1

I was instructed to change the point color in a RadioButtonField, that little blue dot that appears on the selected item, as well as the color of a ButtonField when pressed, to orange. How can I make this?

I already changed the LabelField color by making a subclass and overriding the paint method.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Kenny D.
  • 927
  • 3
  • 11
  • 29

1 Answers1

1

I believe that underneath the hood the radio button is a pair of image files which is why there is not an API to modify aspects of the image such as colour.

My suggestion to you is download the advanced UI classes (these are great to have anyway): http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-managers/ta-p/488276

Then use the BitmapButtonField or LabelSwitchField with your own radio button images.

halfer
  • 19,824
  • 17
  • 99
  • 186
Ray Vahey
  • 3,065
  • 1
  • 24
  • 25
  • Thank you very much, I didn't understand how to make a BitmapButtonField work as a radio button, but used a label switch field since they were just 2 values, I'm gonna mark this as the answer since it was very very helpful, but if you can indicate me how to make the BitmapButtonField work as a radio button (for future reference) I would appreciate it :D – Kenny D. May 29 '11 at 21:35
  • 1
    Yes I'm not sure why I mentioned the option of BitmapButtonField, LabelSwitchField is clearly a better choice. But anyway, with BBF you could toggle a boolean within the FieldChangeListener event and call setImage(bitmap) with the bitmap associated to the current boolean state. – Ray Vahey May 30 '11 at 07:48