の真の初心者でJava Fx
、Web で見つけた 2 つの png ファイルをアプリに読み込む際に問題が発生しています。誰かが私に何が間違っているのか教えてもらえますか? 私が使用しているコードの下:
Button fButton = new Button("Agregar selección");
Image imageF = new Image(getClass().getResourceAsStream("forwardArrow.png"))
fButton.setGraphic(new ImageView(imageF));
何らかの理由で、Java Fx グラフィック エンジンに障害が発生しています。
どんなヒントでも大歓迎です。
エラーの下で取得しています:
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at