KeyFrame fadeOutKey1 = new KeyFrame(Duration.millis(500), new KeyValue (toastStage.getScene.getRoot.opacityProperty, 0));

                    tl2.getKeyFrames.add(fadeOutKey1);   

                    tl2.setOnFinished((aeb) -> toastStage.close);

                    tl2.play;

            }).start;

        });

        tl1.play;

    }

<p><strong>Генератор арифметического примера</strong></p>

 String arithSchema1{

        int a,b,c,d;

        Random random=new Random;

Перейти на страницу:

Похожие книги