Sunday, 8 September 2013

How rewrite this code for Java 7

How rewrite this code for Java 7

I want to write this code for Java 7.
timeline.setOnFinished(actionEvent -> Platform.runLater(() -> {
POPUP.hide();
popups.remove(POPUP);
}));
I wrote this:
timeline.setOnFinished(new EventHandler<ActionEvent>(){
@Override
public void handle(ActionEvent arg0) {
POPUP.hide();
popups.remove(POPUP);
}
});
But I'm not sure where to insert the rest of the code.
Where I have to insert Platform.runLater(()?

No comments:

Post a Comment