Hi everyone, I need to set an image to the window of my application
I've heard it is this way
frame.setIconImage(new ImageIcon(imgURL).getImage());
but not working, I know setIconImage needs an Image as a parameter, but I don't know how to create it because nowhere it asks for the location of my image
another question:is the window icon (in the upper-left) the same as the task bar icon, or do I have to set two differents sized icons?
thanks!