Exception in Application start method

前端 未结 1 1926
甜味超标
甜味超标 2020-12-20 09:14

I\'m new to javafx and i was trying to make a gui from which when a button is clicked, it would go to another window. I tried reading many answers found on Stack Overflow. I

相关标签:
1条回答
  • 2020-12-20 09:43

    The stack trace tells you the problem:

    Error resolving onAction='#handleButtonAction', either the event handler is not in the Namespace or there is an error in the script.

    You have

    <Button fx:id="login" layoutX="153.0" layoutY="440.0" onAction="#handleButtonAction" ... >
    

    but your controller has no method called handleButtonAction. You probably want

    <Button fx:id="login" layoutX="153.0" layoutY="440.0" onAction="#btnClicked" ... >
    
    0 讨论(0)
提交回复
热议问题