I used this library for all of my projects for a very long time and never thought I needed anything else. The most popular icon font, at least in the beginning, was FontAwesome and there is a JavaFX implementation for it called FontAwesomeFX by Jens Deters. This way a single icon can be displayed in many different colors or sizes. The other advantage is that font icons can be styled via CSS. That makes managing them in your workspace very easy. The big advantage of an icon font is the fact that all icons are contained within a single file. Luckily for all of us the web has already come up with a solution for this problem, and the solution is called “Icon Fonts”. But once I started working on bigger projects the need to support hundreds of icons became clear. So using PNG files for these libraries was not an issue. Projects like CalendarFX or FlexGanttFX required only a very small number of icons. Ultimately you end up in image file hell.Īt first I didn’t care that much, because I started with framework development. Even more files are needed if you want to support different sizes (small, medium, large) or screen resolutions (e.g. You end up with a different version of the same icon for each state. Just imagine for a moment that you want to support different pseudo states of your nodes (e.g. Normally I would license a library like the “O-Collection” from IconExperience ( But soon it became apparent to me that using image files is too painful. As a former Swing developer I started by using image files, GIFs or PNGs. I have been coding JavaFX applications and libraries since 2013 and one thing they all had in common was that I needed to find good icons / graphics that I could use for them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |