java - automatic resizing of jbutton icon in gridlayout -


i'm making chess game. i'm using gridlayout(8,8) , filled jbutton[8][8]. each jbutton has icon of piece on square or icon of blank square if no piece on it. right pieces cut off. how make icons automatically resize fit whatever size grid makes jbutton?

you might able use darryl's stretch icon.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -