I have developed a Swing application using some image icons. The application jar file is working as expected in Windows but same jar file is not displaying image icon of frame on Ubuntu 12.04 operating system.
My sample code:
ImageIcon ImageIcon = new ImageIcon(getClass().getResource("/images/logo.png"));
Image Image = ImageIcon.getImage();
frame.setIconImage(Image);
Note: images with buttons are displaying as expected, the problem is only with the loading of the frame image.
Can anybody suggest me how to resolve this one?