I’m developing my first BlackBerry application and I want to change the background to Black and all the text (in BasicEditField labels, Labels, etc) White.
I tried using setBackground(Background bg) method on a VerticalFieldManager, but it only blackened the screen as far as my components goes. That is, if I have only two buttons one below the other, the background is only Black as far as the end of buttons. So when there is less components on screen, the screen is half black and half white.
Is there any way I can achieve the behavior I want:
- Whole screen should be Black.
- All the text labels should be White.
Any help greatly appreciated!
This code will set your background as black and editfield as white
Now add editfield as
use
g.setColor(Color.WHITE);for changing the font color.