I have a JPanel with gridlayout (0, 2). I am adding a label in the first and button in the second column. The button resizes to cover the enter cell.
How can I set the size of the button? I have tried
setMaximumSize
setSize
setPreferredSize
nothign works
