Aprende a Crear un Cronómetro en Java

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 6

  • @OctavioPlata
    @OctavioPlata 8 місяців тому

    Cómo puedo hacer que toda la ventana del cronómetro sea negra y las letras blancas?

  • @javazantech
    @javazantech 11 місяців тому

    Aceita pedido de vídeo aula?

  • @edwardmorales2901
    @edwardmorales2901 Рік тому +1

    Hola, sería de gran ayuda si pudieras proporcionarme el código del video. Muchas gracias.

    • @ProgramaTutos
      @ProgramaTutos  Рік тому +1

      El código está en el repositorio del curso github.com/jcqa24/Ejemplos-java

  • @Hayasem
    @Hayasem Рік тому

    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...

    • @ProgramaTutos
      @ProgramaTutos  Рік тому

      You can see the code here - github.com/jcqa24/Ejemplos-java/tree/master/Cronometro