njewsbury / gravitational-simulation

Repository for UManitoba PHYS4250 Final Project
MIT License
0 stars 1 forks source link

Background image doesn't display on executable jar #4

Closed njewsbury closed 9 years ago

njewsbury commented 9 years ago

This is an issue with path finding, when the project is run through an IDE it's able to locate the proper resources to load the background panel image, however when run through the executable jar nothing displays and users are left with the regular JPanel background colour.

Two fixes are proposed for this : 1. Use the classloader getResource to dynamically load the required image from the proper path and 2. If unable to load the image fallback to a colour scheme that isn't as bright. (Black may be too dark.)

njewsbury commented 9 years ago

Setup the class loader to bring in the image for the ImagePanel. now loads fine on external JARs. Won't be changing the default background colour currently. Marking this issue closed.