Skip to content

Patch: setIconImage #32

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

Merged
merged 7 commits into from
Feb 17, 2020
Merged

Patch: setIconImage #32

merged 7 commits into from
Feb 17, 2020

Conversation

jfullstackdev
Copy link
Contributor

Good day.

The setIconImage will simply not work when we are dealing with a jar file, because the contents inside might not actually be located. In order to fix that

  1. I added BufferedImageCustom.java to read the content properly and throw an exception if the file (icon.png) cannot be located.

  2. The UI constructor, in order to accept a method that throws an exception, I added throws IOException.

  3. The main method, in order to properly catch the exception, there should be the try-catch block.

  4. In order to mark this, I created another release, executable jar file included,
    https://github.com/xdvrx1/Simple-Java-Calculator/releases/tag/v1.1.1
    Again, the name of this release, is up to you when you want to include this in your repo.

Thank you so much!

Copy link
Owner

@pH-7 pH-7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯👏

@pH-7 pH-7 merged commit 345b9f6 into pH-7:master Feb 17, 2020
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.

2 participants