ImageView每次单击按钮时,我都试图旋转90 度(JavaFX):
ImageView
private void rotate90(ActionEvent e){ if(currentImage != null){ imageView.setRotate(90); } }
但我的代码只旋转ImageView一次,然后它就停止了。
javafx image rotation
image ×1
javafx ×1
rotation ×1