如何在特定坐标(例如窗口的 (x,y))处显示 Button 或 JButton?
最佳答案
尽管您可以使用 setLocation() ,
I would strongly suggest using a Layout Manager, because while using a layout manager, though you can provide size and alignment hints, a container's layout manager has the final say on the size and position of the components within the container, believe me this can save you at times!
关于java - 在特定坐标处显示按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8921934/