Answer the question
In order to leave comments, you need to log in
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));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question