回答編集履歴
1
修正
answer
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
あなたが`Controller`、および`Controller2`でimportしている`ActionEvent`は`java.awt.event.ActionEvent`で、これはawt用のものであり、JavaFXでは使えません。そのため、`
|
1
|
+
あなたが`Controller`、および`Controller2`でimportしている`ActionEvent`は`java.awt.event.ActionEvent`で、これはawt用のものであり、JavaFXでは使えません。そのため、`handleNext`がJavaFXで認識できるハンドラメソッドと型が違っているためにエラーが起きています。`javafx.event.ActionEvent`を使ってください。
|
2
2
|
また、同様に`Button`もawt用のものですので、`javafx.scene.control.Button`に変えてください。
|