3

In LWUIT, some components (like the textField) have a hint property. Is there anyway to change this text´s format?

I need to modify font and color. Is it possible?

bharath
  • 14,283
  • 16
  • 57
  • 95
Mun0n
  • 4,438
  • 4
  • 28
  • 46

2 Answers2

8

Yeah its possible. Hint UIID name is TextHint. So you can use Component name as TextHint on Unselected style on ResourceEdit file.

bharath
  • 14,283
  • 16
  • 57
  • 95
0

TextField font and color changes code:

txtName.getStyle().setFont(Font.createSystemFont(Font.FACE_MONOSPACE, Font.STYLE_PLAIN, Font.SIZE_MEDIUM));
txtName.getStyle().setFgColor(0XFFAA00);
ranjith
  • 99
  • 7