commit 11/04/2025
This commit is contained in:
@@ -182,19 +182,16 @@ public class AutoCloseAlert {
|
||||
|
||||
Timeline timeline = new Timeline();
|
||||
timeline.getKeyFrames().add(new KeyFrame(Duration.seconds(0), event -> {
|
||||
System.out.println("First timeline, showing the alertstage");
|
||||
alertStage.show();
|
||||
}));
|
||||
|
||||
for(int xx = 0; xx < pictures.length; xx++){
|
||||
final int index = xx;
|
||||
timeline.getKeyFrames().add(new KeyFrame(Duration.seconds(seconds*(index+1)), event -> {
|
||||
System.out.println("showpicture timeline keyframe "+index);
|
||||
imageView.setImage(pictures[index]);
|
||||
}));
|
||||
}
|
||||
timeline.getKeyFrames().add(new KeyFrame(Duration.seconds(seconds* (pictures.length+1)), event -> {
|
||||
System.out.println("showpicture timeline finished");
|
||||
alertStage.close();
|
||||
if (currentAlertStage == alertStage) {
|
||||
currentAlertStage = null;
|
||||
@@ -203,11 +200,6 @@ public class AutoCloseAlert {
|
||||
clear();
|
||||
}));
|
||||
timeline.play();
|
||||
System.out.println("showpicture timeline play");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
currentAlertStage = alertStage;
|
||||
shownTitle = "";
|
||||
|
||||
Reference in New Issue
Block a user