문제

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?

도움이 되었습니까?

해결책

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

다른 팁

TextField font and color changes code:

txtName.getStyle().setFont(Font.createSystemFont(Font.FACE_MONOSPACE, Font.STYLE_PLAIN, Font.SIZE_MEDIUM));
txtName.getStyle().setFgColor(0XFFAA00);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top