It has to do with your locale being turkish, all Icons with an I in it will probably not work for you currently due to that .toLowerCase() call in the Icon constructor, which will turn I to ı instead of i for people in turkish Locale. Until this is fixed, you will have to use your second way of creating the Icon if the needed icon contains an I.