<dependencies>
...
<dependency>
<groupId>com.github.devlight</groupId>
<artifactId>iron-icons</artifactId>
<version>5.2.1</version>
</dependency>
...
</dependencies>
import javax.swing.*;
import java.awt.*;
public class DesktopApp extends JFrame {
public DesktopApp() {
setSize(400, 300);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new BorderLayout());
label.setIcon(new ImageIcon(getClass().getResource("/icons/iron-icon.png")));
add(label, BorderLayout.CENTER);
setVisible(true);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> new DesktopApp());
}
}