在 Java 中创建动态二维矩阵
我想要一个动态矩阵,行数和列数未知,通过单击按钮填充它。但还有更多:我不想添加整行,而只是一次添加一个单元格,单击一下=添加一个单元格。当然不是随机的:第一行的第一个单元格,第一行的第二个单元格...然后第二行的相同单元格等等...
我了解 UJMP,ArrayList,但这并不完全是我想要的。请准确回答,谢谢。
I want a dynamic matrix, number rows and columns unkonw, filling it by clicking on a button. Bu there is more: I don't want to add entire rows, but just one cell at the time, one click = one cell added. Of course not randomly : 1st cell of 1st row, 2nd cell of 1st row... and then the same of the 2nd row and so one...
I know about UJMP, ArrayList, but it's not quite what I'm looking for. Please be accurate on your answer, thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用这个:
Use this: