Imo, it has nothing to do with TextField.DECIMAL as it is a problem with the the other textfield.
When you say symbol, are they normal letters of the alphabet (eg. arb) or are they actually symbols (eg. $ % ^)? Also, which nokia handsets are you testing on? S60?
Also, in the for loop below, you forgot to add the [i] and instead reffered to the main array itself.
Code:
symbol = new TextField("Symbol","",20,TextField.ANY );
price = new TextField("Price ","",20,TextField.DECIMAL );
this.setItemStateListener(this) ;
public void itemStateChanged(Item item){
if(this.equalStrings(item.getLabel(),"Symbol" ) ) {
setPrice();
}
}
public void setPrice(){
String temp = symbol.getString() ;
for (int i=0 ; i < symbols.length ; i++ ) {
if(symbols[i] == null) {
continue;
}
if(this.equalStrings(symbols[i].toString() ,temp) ) {
price.setString(prices.toString());
}
}
}