Java FX fxml on Action

后端 未结 1 1745
暗喜
暗喜 2020-12-01 21:03

I want to add a method to a button which is defined in my Controller class

in the console is only an error which tells me that it couldn\'t find the met

相关标签:
1条回答
  • 2020-12-01 21:30

    Replace:

    import java.awt.event.ActionEvent;
    

    with:

    import javafx.event.ActionEvent;
    
    0 讨论(0)
提交回复
热议问题