I have add a `JLabel` in a `JFrame`
and one image of size 1024x768 is added in `JLabel`.
When I set the resolution of window screen in 1024x768 the and run the application the image is shown in full window. But when I set the resolution of window screen in 1280x768 - the image is shown in only one third portion of window.
How can I adjust or add the image of size 1024x768 so that in any screen resolution the image will show covering the full window? In other words the image is adjusted as per the screen resolution of window.
以上就是Adjust the image as per screen resolution of window的详细内容，更多请关注web前端其它相关文章！