I am storing an image into a JLabel and then put in a JFrame to display. However, when I run the program the image disappears. This is because the Windows Vista Color Scheme has changed. What should I do in this case?
Printable View
I am storing an image into a JLabel and then put in a JFrame to display. However, when I run the program the image disappears. This is because the Windows Vista Color Scheme has changed. What should I do in this case?
How did you added an image to the label. And also how did you added label to the frame, didn't you use any container like JPanel?
The image is an icon in JLabel. The JLabel is stored in a JFrame. Is anything wrong?
also, is there any way I can autoadjust an image (in JLabel) to full screen?
Add the all component in the panel and that panel should be added to the frame. You can set the size (width and height) same as the frame.
That's a good point Fubarable. I miss it.
I don't think that Vista can effect on Swing API anyhow. What I believe is that our thread starter mess up with the components.