I know that images look smaller or bigger depending on the screen resolution so an image (say 10x10) would look bigger on a less resolution display and look tiny on a higher resolution display.
I am not saying that it is not possible to load icons of different sizes but that would take a huge amount of computation every time the application is run. Something along the lines of:
- Start
- Get a
Toolkit
object - Get the screen size
- Compare the screen size against a set of predefined sizes
- Screen is small? Load smaller icons
- Screen is big? Load bigger icons
- Set the icons for various
JLabel
,JButton
, etc - Stop
Is the computation worth it or should I just let the application window and icons look small/big and make a trade-off?
Is it really necessary to maintain the proper sizing of the icons for good aesthetics ?