JavaFX deployment with Eclipse [message #1691999] |
Sat, 11 April 2015 14:33  |
Eclipse User |
|
|
|
Hello,
If I create a JavaFX app and I deploy it from Eclipse, the CSS won't be working for some reason. The app works inside Eclipse fine...
This is how I use the CSS:
anchorPane.getStylesheets().add(Main.class.getResource("style.css").toExternalForm());
The deployment I have done with the build.fxbuild.
I have just filled out the obligatory fields, and I signed the app, that's all. I haven't set any other settings. I didn't convert the .css into .bss for example.
Do you now why is it not working properly? Many Thanks!
|
|
|
Re: JavaFX deployment with Eclipse [message #1692122 is a reply to message #1691999] |
Mon, 13 April 2015 12:15  |
Eclipse User |
|
|
|
Hi,
Generally JavaFX support is provided through the eclipse.efxclipse
newsgroup!
Is the css file part of the jar?
Did you check the upper/lowercase? - As long as you run from eclipse you
use the OS-Filesystem which e.g. on win32 is case-insensitive but at the
moment you run from a jar this FS is casesensitive!
Tom
On 13.04.15 14:48, Za Abb wrote:
> Hello,
>
> If I create a JavaFX app and I deploy it from Eclipse, the CSS won't be
> working for some reason. The app works inside Eclipse fine...
>
> This is how I use the CSS:
>
> anchorPane.getStylesheets().add(Main.class.getResource("style.css").toExternalForm());
>
>
> The deployment I have done with the build.fxbuild. I have just filled
> out the obligatory fields, and I signed the app, that's all. I haven't
> set any other settings. I didn't convert the .css into .bss for example.
>
> Do you now why is it not working properly? Many Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.04512 seconds