The video is pretty great, you teach really well! But something went wrong with my code. I was following the video 'till the method "pausarcronometro" but the button "pausar" isn't working, and I don't know what I did wrong, could you help me out? here the code: pauseButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if(!active) { pausarCronometro(); } } }); .... private void pausarCronometro(){ active = false; pauseButton.setBackground(Color.red); if(timer != null && timer.isRunning()){ timer.stop(); } } It's pretty simiiar with how you showed in the video, but isn't working how it should...
Cómo puedo hacer que toda la ventana del cronómetro sea negra y las letras blancas?
Aceita pedido de vídeo aula?
Hola, sería de gran ayuda si pudieras proporcionarme el código del video. Muchas gracias.
El código está en el repositorio del curso github.com/jcqa24/Ejemplos-java
The video is pretty great, you teach really well! But something went wrong with my code. I was following the video 'till the method "pausarcronometro" but the button "pausar" isn't working, and I don't know what I did wrong, could you help me out?
here the code:
pauseButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if(!active) {
pausarCronometro();
}
}
});
....
private void pausarCronometro(){
active = false;
pauseButton.setBackground(Color.red);
if(timer != null && timer.isRunning()){
timer.stop();
}
}
It's pretty simiiar with how you showed in the video, but isn't working how it should...
You can see the code here - github.com/jcqa24/Ejemplos-java/tree/master/Cronometro