is it possible to shake primary stage with Timeline and so Use XTimeline and YTimeLine?
final Timeline Xtimeline = new Timeline();//for Animate On X'-Stage
Xtimeline.setCycleCount(Timeline.INDEFINITE);
Xtimeline.setAutoReverse(true);
final Timeline Ytimeline = new Timeline();//for Animate On Y'-Stage
Ytimeline.setCycleCount(Timeline.INDEFINITE);
Ytimeline.setAutoReverse(true);
The complete code of this demonstration (also available as a gist):
Try This..