Unable to construct javafx.application.Application instance

后端 未结 1 628
借酒劲吻你
借酒劲吻你 2020-12-11 03:44

I\'m trying a JavaFX tutorial from the Oracle site [fxml tutorial] (http://docs.oracle.com/javase/8/javafx/get-started-tutorial/fxml_tutorial.htm).

package f         


        
1条回答
  •  醉梦人生
    2020-12-11 03:52

    class Main extends Application is missing the initial public keyword.

    Also public Main() {} is unnecessary.

    0 讨论(0)
提交回复
热议问题