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.
我制作了一个 8*8 jButton 的网格。我想在二维数组中使用这些按钮。我将如何进行?
您可以像处理任何其他数组一样进行操作:
JButton[][] buttonGrid = new JButton[cols][rows];