Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using image resources in a folder or another project's root

936119May 11 2012 — edited May 13 2012
Hello,
I must confess that I find it annoying to place my pictures and icon resources in the same package to access them in the JavaFX application. I think this enforcement by JavaFX is an unreasonable one.

Consider that I use the same icon in several places in my application. It is the same resource that I have to put in several different places. Imaging the problems when trying to refactor or upgrading the application.

Is there a mechanism to access icons/picture resources in a folder at the root of the project or access these resources in a separate project. I would prefer the latter because in this way, I create a single project with all these resources and all other projects would access them from this project. I think this would allow updates, refactoring to be done much more easily.

If such a mechanism exists, please point me to it.

Than ks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2012
Added on May 11 2012
7 comments
7,148 views