Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有 25 个 JButton 的框架,每个都有一个图标。如果矩阵上的某个位置有 1,则有一种方法可以更改图标,但真正的问题在于尺寸,因为新图标可能更大,因此元素变得“疯狂”,有一种布局或方法可以保持元素的位置?