• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME Polish / focused-style

 
Elías Turbay
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I from argentina and my english is very poor
I have a problem using the property focused-style for a TextField ...
Here is the code I'm using:

MIDlet:
...
TextField tf = new TextField("Cod",null,5,TextField.NUMERIC);
...
//Within a form
//#style text123
f.append(tf);

CSS:
...
.text123 {
...
border-width: 1;
focused-style: .text123F;
}

.text123F extends .text123 {
border-width: 2;
}

The problem is when then Item got the focus, the style .text123F is not applied at all to the TextField.
Only the predefined style "focused" is used...
But I need to use different kind of styles because I have different Items on the Form (StringItems, TextFields, ChoiceGroup, etc)

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic