/**
* Inicializa los listeners
*/
private void initListeners() {
txtAlimentoInicial.addFocusListener(new FocusListener() {
@Override
public void focusGained(FocusEvent e) {
}
@Override
public void focusLost(FocusEvent e) {
actualizarAlimentoInicial();
}
});
txtAlimentoInicial.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
actualizarAlimentoInicial();
}
});
txtDiaMaximo.addFocusListener(new FocusListener() {
@Override
public void focusGained(FocusEvent e) {
}
@Override
public void focusLost(FocusEvent e) {
actualizarDiaMaximo();
}
});
txtDiaMaximo.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
actualizarDiaMaximo();
}
});
txtAlimentoMaximo.addFocusListener(new FocusListener() {
@Override
public void focusGained(FocusEvent e) {}
@Override
public void focusLost(FocusEvent e) {
actualizarAlimentoMaximo();
}
});
txtAlimentoMaximo.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
actualizarAlimentoMaximo();
}
});
txtAlimentoFinal.addFocusListener(new FocusListener() {
@Override
public void focusGained(FocusEvent e) {}
@Override
public void focusLost(FocusEvent e) {
actualizarAlimentoFinal();