This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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:

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

.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)

I agree. Here's the link:
subject: J2ME Polish / focused-style
jQuery in Action, 3rd edition