Mobile Application
Tuesday, October 18, 2011
set hint text in Editfield using in blackberry
usernameField = new EditField()
{
protected void paint(Graphics g) {
if (getTextLength() == 0) {
g.setColor(Color.LIGHTGRAY);
g.drawText("Username", 0, 0);
}
g.setColor(Color.BLACK);
super.paint(g);
}
};
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment