Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes needed in order not to get a null exception when trying to display the images within a jar file. #33

Merged
merged 1 commit into from Nov 12, 2017

Conversation

panossot
Copy link
Contributor

The github comparison is not accurate. The change is the following for every image access :

Line(s) : new ImageIcon(PlotPanel.class.getResource("icons/center.png"))
is replaced with :
new ImageIcon(ImageIO.read(PlotPanel.class.getResourceAsStream("icons/center.png")))

plus there are a couple of additional try-catch blocks.

@yannrichet yannrichet merged commit 8256c06 into yannrichet:master Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants