Why doesn't setSize() do anything? I have a button but it takes up the size of the whole frame and I have tried using setSize() to make it smaller but it does absolutley nothing. I've read elsewhere that instead of setSize()
you should use setPreferredSize or setMinimumSize() but they take (int dimension) as a parameterr and I have no idea what the value should be because every number I have tried just seems to give an error and doesn't work.
Please help.