Update to the myIcon variable to use Class.getResource rather than using a file path.