Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Synth L&F as jar
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="derharri, post: 1908870"] Hello, i am trying to build a L&F basedf on Synth but now i have problems using the L&F in another project. I pack the L&F into jar add it to a projects classpath but it is not possible to access the images contained in the jar. I know that resources from a jar should be accessed by: MyResourceBase.class.getResource("path/relative/to/the/MyResourceBase.png") the problem is that its not me who accesses the images but synth. AND when i look into synths code the images should be loaded by: new ImageIcon(url, null).getImage() with url is the return of: private URL getResource(String path) { return _resourceBase.getResource(path); } That looks correct to me but it does not work. Has anyone build his synth L&F and got it to work from a jar? If that does not work, what is a custom L&F good for if it can not be deployed as a jar? I am very thankfull for all hints Harri E. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Synth L&F as jar
Top