javaFX, throws NullPointerException, Location is required

前端 未结 2 1539
借酒劲吻你
借酒劲吻你 2021-01-28 03:12

i have seen other answers but nothing have helped me

(sorry new to GUI only know basics of swing)

this is main class

package application;

imp         


        
2条回答
  •  一个人的身影
    2021-01-28 03:50

    try{    
    scene.getStylesheets().add(new File(pathTocssFile).toURI().toURL().toExternalForm());
    } catch (MalformedURLException e) {
    e.printStackTrace();}
    

提交回复
热议问题