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? -

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

ajax - PHP/JSON Login script (Twitter style) not setting sessions -