S
S
sashx2022-04-19 21:43:58
Java
sashx, 2022-04-19 21:43:58

How to change button size in Java BorderLayout?

Hello! I'm trying to make an application in Java BorderLayout, but when adding a button, the question arises: how to change its size?

// Создание кнопок и прикрепление иконок
JButton save = new JButton(new ImageIcon("save.png"));
// Попытка установить размер
save.setPreferredSize(new Dimension(25, 110));


625f02cf90de5912868783.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question