Sizes of frame icons used in Swing
We can use a list to initialise the window icons using Window.setIconImages(List<? extends Image>) . What are the different sizes of icons typically used for in a JFrame ? Code This code turns 64 different sized images (from 16x16, incrementing by 2) into icons for the list. import java.awt.*; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.Vector; import javax.swing.*; import javax.swing.border.EmptyBorder; public class FrameIconList { public static BufferedImage getImage(int size, Color color) { BufferedImage i = new BufferedImage( size, size, BufferedImage