This content has been marked as final. Show 2 replies
If you just want the default icon then you can pass null as icon parameter.
Generally 'icon' parameter takes anything you can pass to java.awt.Toolkit.createImage(String) method.
If you want to use the icon you mentioned then you'll need to add / in the beginning of path.
However I don't think your exception is thrown because of the icon, I think you don't have the font set properly on the spec.
You can either create font explicitly and set it on the spec through spec.setFont() or initialize to profile value through spec.loadProfile().