Akshay Raut Akshay Raut - 11 months ago 143
Java Question

Font Awesome with Swing

Is it possible to use Font Awesome with swing applications?
If possible then how to use its icons with swing components (JButton or JLabel).
I've used Font Awesome earlier with my Primefaces application.


Try jIconFont (Swing or JavaFX) at http://jiconfont.github.io/


Icon icon = IconFontSwing.buildIcon(FontAwesome.SMILE_O, 40, new Color(0, 150, 0));

JLabel label = new JLabel(icon);