N
N
nano_e_t_42016-11-23 13:04:14
Java
nano_e_t_4, 2016-11-23 13:04:14

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

1 answer(s)
D
Dmitry Alexandrov, 2016-11-23
@jamakasi666

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 question

Ask a Question

731 491 924 answers to any question