Я создаю приложение Java Swing, которое имеет следующий макет (MigLayout
):
[icon][icon][icon][....]
where icon = jlabel and the user can add more icons
Когда пользователь добавляет или удаляет значки, другие должны сокращаться или расти.
Мой вопрос очень прост: у меня есть JLabel
, который содержит ImageIcon
; как изменить размер значка?