0
Why doesn't this work? (IconImage)
So I want that instead of the cup of coffe in my JFrame I want a icon but it won't pop up for some reason could someone help me? Script: setIconImage(new ImageIcon("/Click counter/Images/error.png").getImage());
2 ответов
0
You can use this to change the icon:
Image icon = Toolkit.getDefaultToolkit().getImage("your image");
frame.setIconImage(icon);
0
What are the dimensions of said image?