Answer the question
In order to leave comments, you need to log in
How to set a fixed button size?
Hello everyone
Plz tell me who knows how to set a fixed button size?
I'm trying to do this through the setSize and setPrefferedSize functions, but when the frame size changes, the size of the buttons also changes
Thank you
Answer the question
In order to leave comments, you need to log in
setMinimumSize\setMaximumSize but it's better not to use it, but to follow the recommended way of solving this problem through LayoutManagers, which is a much more correct option.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question