Question

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?

Was it helpful?

Solution

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

OTHER TIPS

TextField font and color changes code:

txtName.getStyle().setFont(Font.createSystemFont(Font.FACE_MONOSPACE, Font.STYLE_PLAIN, Font.SIZE_MEDIUM));
txtName.getStyle().setFgColor(0XFFAA00);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top