*
The moose likes Java Micro Edition and the fly likes J2ME Polish / focused-style Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME Polish / focused-style" Watch "J2ME Polish / focused-style" New topic
Author

J2ME Polish / focused-style

Elías Turbay
Ranch Hand

Joined: Oct 06, 2005
Posts: 35
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
 
wood burning stoves
 
subject: J2ME Polish / focused-style
 
Similar Threads
css specificity for textfield
IE Displaying border-bottom-width
DIV and CSS Help
Can you send post method with javascript?
CSS: Resizable Border