GridLayout positions objects horizontally instead of vertically.

Okay, so when I use the line "card = new JPanel(new GridLayout(2,1));", it positions objects horizontally instead of vertically.

What I've tried:

switching to 1,2 instead of 2,1 (pretty obviously didn't work).

I don't know what else to do, as I'm fairly new at GUI.

Here's the class which I'm having trouble with (no criticizing extension of JPanel unless it really is the source of the problem, pbl) Anyone else is free to criticize extension of JPanel as they wish.: