View Single Post
Old 04-23-2008, 09:50 AM   #9 (permalink)
racsus
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi again, I think that error it's when I create the fields of VerticalFieldManager:

filas_aviso[cont_fila_aviso] = new LabelField(contenido, LabelField.FOCUSABLE);
filas_aviso[cont_fila_aviso].setFocusListener(listener);
c1.add(filas_aviso[cont_fila_aviso]);
cont_fila_aviso++;

I think that i have to add this command:

private class FocusListener implements FocusChangeListener {
public void focusChanged(Field field, int eventType) {
EditField campo;
campo = (EditField)field;
aviso = campo.getText();
}
}
FocusListener listener = new FocusListener();

the code is correct, why give error in line campo = (EditField)field;

Thanks, Oscar

Last edited by racsus : 04-23-2008 at 12:08 PM.
Offline   Reply With Quote