I don't understand why it doesn't work.



  • In an attempt to fulfil this code, the "no answer" program. How do you fix that?

    if(ChoiceRe.getText()=="Обычный"){
        System.out.println("Обычный режим запущен");
        time.progressProperty().bind(progress);
        normalTime=normalTime*60;
        normalTime=normalTime*1000;
        for(int row=0;row<100;row++){
            try {
                Thread.sleep(2700000);
            } catch (InterruptedException e) {}
            progress.setValue(progress.getValue()+0.01);
        }
    }
    


  • Well, you're stopping the process for 45 minutes. That's the result.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2