简体   繁体   English

哪一种是表示Java swing中矩阵的最佳布局?

[英]which is the best layout to represent matrices in Java swing?

I'm trying to show the interface for Matrix Multiplication - A*B*C - using Java concurrency and Using java.swing for the interface. 我正在尝试使用Java并发和使用java.swing作为接口来显示矩阵乘法的接口A*B*C

Meaning there will be 4 windows, 3 input one output. 表示将有4个窗口,其中3个输入1个输出。 The output matrix cells will change its values dynamically as you enter the inputs in the 3 GUI input windows. 在3个GUI输入窗口中输入输入时,输出矩阵单元将动态更改其值。 I have solved until the logical part of the program but I'm stuck at showing the interface by using swing and binding these two things together? 我已经解决了直到程序的逻辑部分,但是我仍然想通过使用swing并将这两个东西绑定在一起来显示界面?

Which is the best layout to represent matrices in Java swing? 在Java swing中代表矩阵的最佳布局是哪一种? And where to start learning Swing for this? 从哪里开始学习Swing?

I think GridLayout is perfect for your solution: 我认为GridLayout非常适合您的解决方案:

网格布局

I recommend you to learn swing using Oracle's tutorials: Creating a GUI With JFC/Swing 我建议您使用Oracle的教程来学习挥杆: 使用JFC / Swing创建GUI

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM