Akshay Raut Akshay Raut - 1 year ago 304
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.

Answer Source

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

Example:

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

JLabel label = new JLabel(icon);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download