Java - Evento change en el JTextField

 
Vista:

Evento change en el JTextField

Publicado por Isaac (19 intervenciones) el 30/04/2005 18:15:54
hola a todos...... como puedo saber si a cambiado el texto del JTextField .... un evento change........
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 755
Bronce
Ha mantenido su posición en Java (en relación al último mes)
Gráfica de Java

RE:Evento change en el JTextField

Publicado por Yamil Bracho (2315 intervenciones) el 02/05/2005 01:28:07
Tienes la interface DocumentListener que recibe notificaciones cuando se hacen cambios en un JTextComponent( JTextField). Tienes los metodos :

changedUpdate(DocumentEvent e)
Gives notification that an attribute or set of attributes changed.
void insertUpdate(DocumentEvent e)
Gives notification that there was an insert into the document.
void removeUpdate(DocumentEvent e)
Gives notification that a portion of the document has been removed.

Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar