Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Here link 「JavaFX CSS を使用して UI をスキニングすると、使用するスタイル シートを変更するだけで、図 1 に示されている UI を図 2 に示されている UI に変更できます。」ということがわかりましたが、プロジェクトをコンパイルした後、css ファイルが見つかりません。 distフォルダーにあります。
だから私の質問:アプリを再コンパイルせずにスタイルを変更することは可能ですか?どうすればできますか?
次のオプションがあります:
cssファイルをWebサーバーに配置し、次のようなリンクを使用します。
scene.getStylesheets().add("http://myhost.com/style.css");
また
scene.getStylesheets().add("file:///E:/style.css");
jdkのアーカイブマネージャーまたはjarユーティリティを使用してcssファイルを更新する方法を設計者に説明します。
jar uf FXApp.jar style.css