So i need to create a matching pairs game. So far i've managed to create the table and all the cards. I though using a GridLayout would be suitable so it looks like the cards have been dealt across the table. The only problem is for some reason the cards are no longer the size i specified setSize(150, 200). So the button is no longer the same size as the image contained within in. I'm going to assume it's something to do with GridLayout? As it was working fine before this, but despite my best efforts I can't seem to find what i need to do to fix it. Any help would be much appretiated. Here's my code.