JFormDesigner / FlatLaf

FlatLaf - Swing Look and Feel (with Darcula/IntelliJ themes support)
https://www.formdev.com/flatlaf/
Apache License 2.0
3.31k stars 266 forks source link

Appear a red square icon when using FlatImageIcon #837

Closed TinnieTheCat198 closed 4 months ago

TinnieTheCat198 commented 4 months ago

I am not sure if I used it right

JLabel hospitalName = new JLabel("ABC HOSPITAL"); hospitalName.setIcon(new FlatSVGIcon("src/main/java/com/javaswing/img/logo.svg")); hospitalName.setFont(new Font(FlatRobotoFont.FAMILY,Font.BOLD,30)); hospitalName.setForeground(new Color(0x3497F9)); hospitalName.setBounds(100,25,400,80);

image

This is my project file structure image

TinnieTheCat198 commented 4 months ago

I have figured out: add resources folder in main